ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/mpiSimulation.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/mpiSimulation.cpp (file contents):
Revision 419 by gezelter, Thu Mar 27 15:07:29 2003 UTC vs.
Revision 422 by mmeineke, Thu Mar 27 19:21:42 2003 UTC

# Line 149 | Line 149 | int* mpiSimulation::divideLabor( void ){
149            MolToProcMap[i] = which_proc;
150            AtomsPerProc[which_proc] += add_atoms;
151            for (j = 0 ; j < add_atoms; j++ ) {
152 <            atomIndex++;
153 <            AtomToProcMap[atomIndex] = which_proc;
152 >            AtomToProcMap[atomIndex] = which_proc;
153 >            atomIndex++;
154            }
155            done = 1;
156            continue;
# Line 172 | Line 172 | int* mpiSimulation::divideLabor( void ){
172            MolToProcMap[i] = which_proc;
173            AtomsPerProc[which_proc] += add_atoms;
174            for (j = 0 ; j < add_atoms; j++ ) {
175 <            atomIndex++;
176 <            AtomToProcMap[atomIndex] = which_proc;
175 >            AtomToProcMap[atomIndex] = which_proc;
176 >            atomIndex++;
177            }
178            done = 1;
179            continue;
# Line 194 | Line 194 | int* mpiSimulation::divideLabor( void ){
194            MolToProcMap[i] = which_proc;
195            AtomsPerProc[which_proc] += add_atoms;
196            for (j = 0 ; j < add_atoms; j++ ) {
197 <            atomIndex++;
198 <            AtomToProcMap[atomIndex] = which_proc;
199 <          }
197 >            AtomToProcMap[atomIndex] = which_proc;
198 >            atomIndex++;
199 >           }
200            done = 1;
201            continue;
202          } else {
# Line 285 | Line 285 | int* mpiSimulation::divideLabor( void ){
285    local_index = 0;
286    for (i = 0; i < mpiPlug->nAtomsGlobal; i++) {
287      if (AtomToProcMap[i] == mpiPlug->myNode) {
288      local_index++;
288        globalIndex[local_index] = i;
289 +      local_index++;
290      }
291    }
292  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines