/[escript]/trunk/pythonMPI/src/ScriptMPI.cpp
ViewVC logotype

Diff of /trunk/pythonMPI/src/ScriptMPI.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2318 by caltinay, Fri Nov 21 01:46:31 2008 UTC revision 2319 by gross, Thu Mar 19 03:19:41 2009 UTC
# Line 44  int main( int argc, char **argv ) { Line 44  int main( int argc, char **argv ) {
44      if( mpi_info->rank )      if( mpi_info->rank )
45      {      {
46        char fname[256];        char fname[256];
47        sprintf( fname, "stdout_cpu_%04d.out", mpi_info->rank );        sprintf( fname, "stdout_%04d.out", mpi_info->rank );
48        FILE *fp_out;        FILE *fp_out;
49        fp_out = freopen( fname, "w+", stdout );        fp_out = freopen( fname, "w+", stdout );
50        sprintf( fname, "stdout_cpu_%04d.err", mpi_info->rank );        sprintf( fname, "stdout_%04d.err", mpi_info->rank );
51        FILE *fp_err;        FILE *fp_err;
52        fp_err = freopen( fname, "w+", stderr );        fp_err = freopen( fname, "w+", stderr );
53      }      }

Legend:
Removed from v.2318  
changed lines
  Added in v.2319

  ViewVC Help
Powered by ViewVC 1.1.26