325 |
|
|
326 |
|
// Node 0 needs a list of the magic potatoes for each processor; |
327 |
|
|
328 |
< |
nProc = mpiSim->getNumberProcessors(); |
328 |
> |
nProc = mpiSim->getNProcessors(); |
329 |
|
potatoes = new int[nProc]; |
330 |
|
|
331 |
|
//write out the comment lines |
353 |
|
|
354 |
|
currentIndex = 0; |
355 |
|
|
356 |
< |
for (i = 0 ; i < mpiSim->getTotNmol(); i++ ) { |
356 |
> |
for (i = 0 ; i < mpiSim->getNMolGlobal(); i++ ) { |
357 |
|
|
358 |
|
// Get the Node number which has this atom; |
359 |
|
|
517 |
|
myPotato = 0; |
518 |
|
currentIndex = 0; |
519 |
|
|
520 |
< |
for (i = 0 ; i < mpiSim->getTotNmol(); i++ ) { |
520 |
> |
for (i = 0 ; i < mpiSim->getNMolGlobal(); i++ ) { |
521 |
|
|
522 |
|
// Am I the node which has this integrableObject? |
523 |
|
|