--- trunk/OOPSE/libmdtools/DumpReader.cpp 2004/04/22 03:29:30 1129 +++ trunk/OOPSE/libmdtools/DumpReader.cpp 2004/05/27 00:48:12 1198 @@ -368,7 +368,7 @@ void DumpReader :: readSet( int whichFrame ){ MPI_Recv(&nCurObj, 1, MPI_INT, which_node, TAKE_THIS_TAG_INT, MPI_COMM_WORLD, &istatus); - for(j=0; j < integrableObjects.size(); j++){ + for(j=0; j < nCurObj; j++){ eof_test = fgets(read_buffer, sizeof(read_buffer), inFile); if(eof_test == NULL){ @@ -744,7 +744,7 @@ void DumpReader::nodeZeroError( void ){ int j, myStatus; myStatus = 0; - for (j = 0; j < mpiSim->getNumberProcessors(); j++) { + for (j = 0; j < mpiSim->getNprocessors(); j++) { MPI_Send( &myStatus, 1, MPI_INT, j, TAKE_THIS_TAG_INT, MPI_COMM_WORLD); } @@ -760,4 +760,4 @@ void DumpReader::anonymousNodeDie( void ){ MPI_Finalize(); exit (0); } -#endif \ No newline at end of file +#endif