ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/utils/ProgressBar.cpp
(Generate patch)

Comparing:
trunk/src/utils/ProgressBar.cpp (file contents), Revision 1431 by gezelter, Thu Apr 8 14:27:53 2010 UTC vs.
branches/development/src/utils/ProgressBar.cpp (file contents), Revision 1629 by gezelter, Wed Sep 14 21:15:17 2011 UTC

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

Comparing:
trunk/src/utils/ProgressBar.cpp (property svn:keywords), Revision 1431 by gezelter, Thu Apr 8 14:27:53 2010 UTC vs.
branches/development/src/utils/ProgressBar.cpp (property svn:keywords), Revision 1629 by gezelter, Wed Sep 14 21:15:17 2011 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines