--- trunk/src/io/DumpReader.cpp 2007/01/03 20:47:00 1112 +++ trunk/src/io/DumpReader.cpp 2008/10/22 20:01:49 1313 @@ -92,7 +92,7 @@ namespace oopse { } strcpy(checkPointMsg, "Dump file opened for reading successfully."); - MPIcheckPoint(); + errorCheckPoint(); #endif @@ -113,7 +113,7 @@ namespace oopse { } strcpy(checkPointMsg, "Dump file closed successfully."); - MPIcheckPoint(); + errorCheckPoint(); #endif @@ -263,7 +263,6 @@ namespace oopse { std::string line; #ifndef IS_MPI - inFile_->clear(); inFile_->seekg(framePos_[whichFrame]); @@ -297,8 +296,11 @@ namespace oopse { int sendBufferSize; MPI_Bcast(&sendBufferSize, 1, MPI_INT, masterNode, MPI_COMM_WORLD); char * recvBuffer = new char[sendBufferSize+1]; + assert(recvBuffer); + recvBuffer[sendBufferSize] = '\0'; MPI_Bcast(recvBuffer, sendBufferSize, MPI_CHAR, masterNode, MPI_COMM_WORLD); sstream.str(recvBuffer); + delete [] recvBuffer; } std::istream& inputStream = sstream;