--- trunk/mdtools/interface_implementation/SimSetup.cpp 2002/11/05 22:04:42 163 +++ trunk/mdtools/interface_implementation/SimSetup.cpp 2002/11/05 22:04:46 164 @@ -15,6 +15,11 @@ SimSetup::SimSetup(){ SimSetup::SimSetup(){ stamps = new MakeStamps(); globals = new Globals(); + +#ifdef IS_MPI + strcpy( checkPointMsg, "SimSetup creation successful" ); + MPIcheckPoint(); +#endif IS_MPI } SimSetup::~SimSetup(){ @@ -24,16 +29,25 @@ void SimSetup::parseFile( char* fileName ){ void SimSetup::parseFile( char* fileName ){ - inFileName = fileName; - set_interface_stamps( stamps, globals ); #ifdef IS_MPI - mpiEventInit(); -#endif - yacc_BASS( fileName ); + if( worldRank == 0 ){ +#endif // is_mpi + + inFileName = fileName; + set_interface_stamps( stamps, globals ); + #ifdef IS_MPI - throwMPIEvent(NULL); + mpiEventInit(); #endif + yacc_BASS( fileName ); + +#ifdef IS_MPI + throwMPIEvent(NULL); + } + else recieveParse(); +#endif + } #ifdef IS_MPI @@ -41,6 +55,7 @@ void SimSetup::receiveParse(void){ set_interface_stamps( stamps, globals ); mpiEventInit(); + MPIcheckPoint(); mpiEventLoop(); }