--- trunk/mdtools/interface_implementation/SimSetup.cpp 2003/01/27 21:28:19 249 +++ trunk/mdtools/interface_implementation/SimSetup.cpp 2003/01/30 15:20:21 253 @@ -238,7 +238,7 @@ void SimSetup::createSim( void ){ mpiSim = new mpiSimulation( simnfo ); - mpiSim->divideLabor(); + globalIndex = mpiSim->divideLabor(); // set up the local variables @@ -645,6 +645,12 @@ void SimSetup::makeAtoms( void ){ } } +#ifdef IS_MPI + for( i=0; igetMyNlocal(); i++ ) the_atoms[i]->setGlobalIndex( globalIndex[i] ); + + delete[] globalIndex; +#endif IS_MPI + the_ff->initializeAtoms(); }