ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/brains/SimCreator.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-2.0/src/brains/SimCreator.cpp (file contents):
Revision 1883 by tim, Mon Dec 13 22:30:27 2004 UTC vs.
Revision 1884 by tim, Tue Dec 14 19:08:44 2004 UTC

# Line 523 | Line 523 | void SimCreator::setGlobalIndex(SimInfo *info) {
523      beginRigidBodyIndex = 0;
524      beginCutoffGroupIndex = 0;
525  
526 <    for(int i = 0; i < nproc; i++) {
526 >    for(int i = 0; i < myNode; i++) {
527          beginAtomIndex += NumAtomsInProc[i];
528          beginRigidBodyIndex += NumRigidBodiesInProc[i];
529          beginCutoffGroupIndex += NumCutoffGroupsInProc[i];
# Line 584 | Line 584 | void SimCreator::setGlobalIndex(SimInfo *info) {
584          for(atom = mol->beginAtom(ai); atom != NULL; atom = mol->nextAtom(ai)) {
585              globalMolMembership[atom->getGlobalIndex()] = mol->getGlobalIndex();
586          }
587 +    }
588  
589   #ifdef IS_MPI
590      std::vector<int> tmpMolMembership(nGlobalAtoms, 0);
# Line 596 | Line 597 | void SimCreator::setGlobalIndex(SimInfo *info) {
597      info->setGlobalMolMembership(globalMolMembership);
598   #endif
599  
599    }
600   }
601  
602   void SimCreator::loadCoordinates(SimInfo* info) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines