36 |
|
* [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). |
37 |
|
* [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). |
38 |
|
* [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). |
39 |
< |
* [4] Vardeman, Stocker & Gezelter, in progress (2010). |
39 |
> |
* [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). |
40 |
> |
* [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). |
41 |
|
*/ |
42 |
|
|
43 |
|
#include <iostream> |
44 |
+ |
#include <cstdlib> |
45 |
+ |
#include <cstdio> |
46 |
|
#include <sys/ioctl.h> |
47 |
+ |
#include <unistd.h> |
48 |
|
#ifdef IS_MPI |
49 |
|
#include <mpi.h> |
50 |
|
#endif |
83 |
|
#endif |
84 |
|
|
85 |
|
// only do the progress bar if we are actually running in a tty: |
86 |
< |
if (isatty(fileno(stdout))) { |
83 |
< |
|
86 |
> |
if (isatty(fileno(stdout)) && (getenv("SGE_TASK_ID")==NULL)) { |
87 |
|
// get the window width: |
88 |
|
struct winsize w; |
89 |
|
ioctl(fileno(stdout), TIOCGWINSZ, &w); |