# | Line 238 | Line 238 | void SimSetup::createSim( void ){ | |
---|---|---|
238 | ||
239 | mpiSim = new mpiSimulation( simnfo ); | |
240 | ||
241 | < | mpiSim->divideLabor(); |
241 | > | globalIndex = mpiSim->divideLabor(); |
242 | ||
243 | // set up the local variables | |
244 | ||
# | Line 645 | Line 645 | void SimSetup::makeAtoms( void ){ | |
645 | } | |
646 | } | |
647 | ||
648 | + | #ifdef IS_MPI |
649 | + | for( i=0; i<mpiSim->getMyNlocal(); i++ ) the_atoms[i]->setGlobalIndex( globalIndex[i] ); |
650 | + | |
651 | + | delete[] globalIndex; |
652 | + | #endif IS_MPI |
653 | + | |
654 | the_ff->initializeAtoms(); | |
655 | } | |
656 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |