ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/io/DumpReader.cpp
(Generate patch)

Comparing trunk/src/io/DumpReader.cpp (file contents):
Revision 1112 by chuckv, Wed Jan 3 20:47:00 2007 UTC vs.
Revision 1313 by gezelter, Wed Oct 22 20:01:49 2008 UTC

# Line 92 | Line 92 | namespace oopse {
92      }
93      
94      strcpy(checkPointMsg, "Dump file opened for reading successfully.");
95 <    MPIcheckPoint();
95 >    errorCheckPoint();
96      
97   #endif
98      
# Line 113 | Line 113 | namespace oopse {
113      }
114      
115      strcpy(checkPointMsg, "Dump file closed successfully.");
116 <    MPIcheckPoint();
116 >    errorCheckPoint();
117      
118   #endif
119      
# Line 263 | Line 263 | namespace oopse {
263      std::string line;
264  
265   #ifndef IS_MPI
266
266      inFile_->clear();  
267      inFile_->seekg(framePos_[whichFrame]);
268  
# Line 297 | Line 296 | namespace oopse {
296        int sendBufferSize;
297        MPI_Bcast(&sendBufferSize, 1, MPI_INT, masterNode, MPI_COMM_WORLD);    
298        char * recvBuffer = new char[sendBufferSize+1];
299 +      assert(recvBuffer);
300 +      recvBuffer[sendBufferSize] = '\0';
301        MPI_Bcast(recvBuffer, sendBufferSize, MPI_CHAR, masterNode, MPI_COMM_WORLD);    
302        sstream.str(recvBuffer);
303 +      delete [] recvBuffer;
304      }      
305  
306      std::istream& inputStream = sstream;  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines