--- trunk/OOPSE/libmdtools/DumpReader.cpp 2003/07/22 21:49:38 647 +++ trunk/OOPSE/libmdtools/DumpReader.cpp 2003/07/29 16:32:37 656 @@ -195,10 +195,17 @@ void DumpReader::scanFile( void ){ isScanned = true; } +void DumpReader :: readFrame( SimInfo* the_simnfo, int whichFrame){ + simnfo = the_simnfo; -void DumpReader :: getFrame( SimInfo* the_simnfo, int whichFrame){ + this->readSet( whichFrame ); +} + + +void DumpReader :: readSet( int whichFrame ){ + int i, j, done, which_node, which_atom; // loop counter const int BUFFERSIZE = 2000; // size of the read buffer @@ -213,10 +220,16 @@ void DumpReader :: getFrame( SimInfo* the_simnfo, int int procIndex; double boxMat[9]; double theBoxMat3[3][3]; + + fpos_t *framePos; + +#ifndef IS_MPI + + framePos = startFrame[whichFrame].getPos(); - simnfo = the_simnfo; + + -#ifndef IS_MPI eof_test = fgets(read_buffer, sizeof(read_buffer), inFile); if( eof_test == NULL ){ sprintf( painCave.errMsg,