ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/io/RestReader.cpp
(Generate patch)

Comparing trunk/src/io/RestReader.cpp (file contents):
Revision 984 by tim, Wed May 17 21:51:42 2006 UTC vs.
Revision 985 by chrisfen, Wed Jun 7 18:05:19 2006 UTC

# Line 644 | Line 644 | namespace oopse {
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)){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines