| 195 |
|
isScanned = true; |
| 196 |
|
} |
| 197 |
|
|
| 198 |
+ |
void DumpReader :: readFrame( SimInfo* the_simnfo, int whichFrame){ |
| 199 |
|
|
| 200 |
+ |
simnfo = the_simnfo; |
| 201 |
|
|
| 202 |
< |
void DumpReader :: getFrame( SimInfo* the_simnfo, int whichFrame){ |
| 202 |
> |
this->readSet( whichFrame ); |
| 203 |
> |
} |
| 204 |
|
|
| 205 |
+ |
|
| 206 |
+ |
|
| 207 |
+ |
void DumpReader :: readSet( int whichFrame ){ |
| 208 |
+ |
|
| 209 |
|
int i, j, done, which_node, which_atom; // loop counter |
| 210 |
|
|
| 211 |
|
const int BUFFERSIZE = 2000; // size of the read buffer |
| 220 |
|
int procIndex; |
| 221 |
|
double boxMat[9]; |
| 222 |
|
double theBoxMat3[3][3]; |
| 223 |
+ |
|
| 224 |
+ |
fpos_t *framePos; |
| 225 |
+ |
|
| 226 |
+ |
#ifndef IS_MPI |
| 227 |
+ |
|
| 228 |
+ |
framePos = startFrame[whichFrame].getPos(); |
| 229 |
|
|
| 230 |
< |
simnfo = the_simnfo; |
| 230 |
> |
|
| 231 |
> |
|
| 232 |
|
|
| 219 |
– |
#ifndef IS_MPI |
| 233 |
|
eof_test = fgets(read_buffer, sizeof(read_buffer), inFile); |
| 234 |
|
if( eof_test == NULL ){ |
| 235 |
|
sprintf( painCave.errMsg, |