644 |
|
// Get the Node number which has this atom |
645 |
|
which_node = info_->getMolToProc(i); |
646 |
|
|
647 |
< |
if (worldRank == masterNode) { |
647 |
> |
if (which_node == masterNode) { |
648 |
|
mol = info_->getMoleculeByGlobalIndex(i); |
649 |
< |
|
649 |
> |
|
650 |
|
if(mol == NULL) { |
651 |
|
strcpy(painCave.errMsg, "Molecule not found on node 0!"); |
652 |
|
haveError = 1; |
653 |
|
simError(); |
654 |
|
} |
655 |
< |
|
655 |
> |
|
656 |
|
for (integrableObject = mol->beginIntegrableObject(ii); |
657 |
|
integrableObject != NULL; |
658 |
|
integrableObject = mol->nextIntegrableObject(ii)){ |