--- trunk/src/utils/ProgressBar.cpp 2010/04/08 14:27:53 1431 +++ branches/development/src/utils/ProgressBar.cpp 2011/11/22 20:38:56 1665 @@ -36,11 +36,15 @@ * [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). * [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). - * [4] Vardeman, Stocker & Gezelter, in progress (2010). + * [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). + * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). */ #include +#include +#include #include +#include #ifdef IS_MPI #include #endif @@ -79,8 +83,7 @@ namespace OpenMD { #endif // only do the progress bar if we are actually running in a tty: - if (isatty(fileno(stdout))) { - + if (isatty(fileno(stdout)) && (getenv("SGE_TASK_ID")==NULL)) { // get the window width: struct winsize w; ioctl(fileno(stdout), TIOCGWINSZ, &w);