--- trunk/mdtools/mpi_implementation/mpiSimulation.cpp 2002/12/05 21:37:51 196 +++ trunk/mdtools/mpi_implementation/mpiSimulation.cpp 2002/12/10 21:41:26 202 @@ -26,8 +26,12 @@ mpiSimulation::~mpiSimulation(){ } -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,17 @@ void mpiSimulation::divideLabor(int nComponents, Molec int testSum; + nComponents = entryPlug->nComponents; + compStamps = entryPlug->compStamps; + componentsNmol = entryPlug->componentsNmol; + + simTotAtoms = entryPlug->n_atoms; + simTotBonds = entryPlug->n_bonds; + simTotBends = entryPlug->n_bends; + simTotTorsions = entryPlug->n_torsions; + simTotSRI = entryPlug->n_SRI; + simTotNmol = entryPlug->n_nmol; + numerator = (double) entryPlug->n_atoms; denominator = (double) numberProcessors; precast = numerator / denominator;