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

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

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

revision 3907 by jfenwick, Tue Apr 10 08:57:23 2012 UTC revision 3908 by caltinay, Wed Jun 13 05:43:45 2012 UTC
# Line 39  int main( int argc, char **argv ) { Line 39  int main( int argc, char **argv ) {
39      }      }
40      mpi_info = Esys_MPIInfo_alloc( MPI_COMM_WORLD );      mpi_info = Esys_MPIInfo_alloc( MPI_COMM_WORLD );
41    
42  //    if( mpi_info->rank )      if( mpi_info->rank )
43  //    {      {
44  //      char fname[256];        char fname[256];
45  //      sprintf( fname, "stdout_%04d.out", mpi_info->rank );        sprintf( fname, "stdout_%04d.out", mpi_info->rank );
46  //      /* FILE *fp_out = */ freopen( fname, "w+", stdout );        /* FILE *fp_out = */ freopen( fname, "w+", stdout );
47  //      sprintf( fname, "stdout_%04d.err", mpi_info->rank );        sprintf( fname, "stdout_%04d.err", mpi_info->rank );
48  //      /* FILE *fp_err = */ freopen( fname, "w+", stderr );        /* FILE *fp_err = */ freopen( fname, "w+", stderr );
49  //    }      }
50      /*      /*
51       * Start the python parser       * Start the python parser
52       */       */

Legend:
Removed from v.3907  
changed lines
  Added in v.3908

  ViewVC Help
Powered by ViewVC 1.1.26