# | Line 179 | Line 179 | void AllCorr::calcCorrelations(){ | |
---|---|---|
179 | ||
180 | for(k=0; k<nFrames; k++){ | |
181 | ||
182 | < | currInfo = &(infoArray[k]); |
182 | > | currInfo = &(infoArray[0]); // only use 1 frame to save memory |
183 | ||
184 | // skip the first frame, as it is already initialized | |
185 | if( k != 0 ){ | |
# | Line 192 | Line 192 | void AllCorr::calcCorrelations(){ | |
192 | ||
193 | // read in the frame's positions | |
194 | ||
195 | < | reader->readFrame( &(infoArray[k]), 0 ); |
195 | > | reader->readFrame( currInfo, k ); |
196 | } | |
197 | ||
198 | frameVolume = currInfo->boxVol; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |