214 |
|
potatoes = new int[nProc]; |
215 |
|
|
216 |
|
//write out the comment lines |
217 |
< |
for(i = 0; i < nProc; i++) { |
217 |
> |
for(int i = 0; i < nProc; i++) { |
218 |
|
potatoes[i] = 0; |
219 |
|
} |
220 |
|
|
221 |
|
|
222 |
|
os << nTotObjects << "\n"; |
223 |
< |
writeCommentLine(info_->getSnapshotManager()->getCurrentSnapshot()); |
223 |
> |
writeCommentLine(os, info_->getSnapshotManager()->getCurrentSnapshot()); |
224 |
|
|
225 |
< |
for(i = 0; i < info_->getNGlobalMolecules(); i++) { |
225 |
> |
for(int i = 0; i < info_->getNGlobalMolecules(); i++) { |
226 |
|
|
227 |
|
// Get the Node number which has this atom; |
228 |
|
|
409 |
|
|
410 |
|
myPotato = 0; |
411 |
|
|
412 |
< |
for(i = 0; i < info_->getNGlobalMolecules(); i++) { |
412 |
> |
for(int i = 0; i < info_->getNGlobalMolecules(); i++) { |
413 |
|
|
414 |
|
// Am I the node which has this integrableObject? |
415 |
< |
whichNode = info_->getMolToProc(i); |
415 |
> |
int whichNode = info_->getMolToProc(i); |
416 |
|
if (whichNode == worldRank) { |
417 |
|
if (myPotato + 1 >= MAXTAG) { |
418 |
|
|