# | Line 40 | Line 40 | |
---|---|---|
40 | */ | |
41 | ||
42 | #include <iostream> | |
43 | + | #include <cstdlib> |
44 | #include <sys/ioctl.h> | |
45 | #ifdef IS_MPI | |
46 | #include <mpi.h> | |
# | Line 79 | Line 80 | namespace OpenMD { | |
80 | #endif | |
81 | ||
82 | // only do the progress bar if we are actually running in a tty: | |
83 | < | if (isatty(fileno(stdout))) { |
83 | < | |
83 | > | if (isatty(fileno(stdout)) && (getenv("SGE_TASK_ID")==NULL)) { |
84 | // get the window width: | |
85 | struct winsize w; | |
86 | ioctl(fileno(stdout), TIOCGWINSZ, &w); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |