--- trunk/mdtools/mpi_implementation/mpiSimulation.cpp 2002/12/05 21:37:51 196 +++ trunk/mdtools/mpi_implementation/mpiSimulation.cpp 2002/12/09 20:54:42 200 @@ -26,8 +26,12 @@ void mpiSimulation::divideLabor(int nComponents, Molec } -void mpiSimulation::divideLabor(int nComponents, MoleculeStamp** compStamps, int* componentsNmol ){ - +void mpiSimulation::divideLabor( void ){ + + int nComponents; + MoleculeStamp** compStamps; + int* componentsNmol; + double numerator; double denominator; double precast; @@ -41,6 +45,10 @@ void mpiSimulation::divideLabor(int nComponents, Molec int testSum; + nComponents = entryPlug->nComponents; + compStamps = entryPlug->compStamps; + componentsNmol = entryPlug->componentsNmol; + numerator = (double) entryPlug->n_atoms; denominator = (double) numberProcessors; precast = numerator / denominator;