--- trunk/mdtools/headers/mpiSimulation.hpp 2002/10/11 15:09:09 134 +++ trunk/mdtools/headers/mpiSimulation.hpp 2002/12/13 17:59:48 208 @@ -1,30 +1,51 @@ #ifndef __MPISIMULATION__ #define __MPISIMULATION__ +#include "SimInfo.hpp" +#include "MakeStamps.hpp" + class mpiSimulation{ public: - mpiSimulation(); - ~mpiSimulation(); + mpiSimulation(SimInfo* the_entryPlug); + ~mpiSimulation(); + + void divideLabor( void ); + + int getMyNode(void) { return myNode; } + int getMyMolStart( void ) { return myMolStart; } + int getMyMolEnd( void ) { return myMlEnd; } + int getMyMol( void ) { return myMol; } + int getMyAtomStart( void ) { return myAtomStart; } + int getMyAtomEnd( void ) { return myAtomEnd; } + int getMyNlocal( void ) { return myNlocal; } - int getMyNode(void) {return myNode;} - int mpiInitSimulation(); - int mpiDistSimulation(); + int getTotAtoms( void ) { return simTotAtoms; } + private: protected: - int myMolStart; - int myMolEnd; - int myMol; - int numberProcessors; - int myNode; - int processorNameLen; - char* processorName; - int natomsRow,natomsCol,natomsStart,natomsEnd; - int numberCols,numberRows; - int nmolsRow,nmolsCol,nmolsLocal; + SimInfo* entryPlug; + + int myMolStart; + int myMolEnd; + int myAtomStart, myAtomEnd; + int myMol; + int myNlocal; + int *myIdents; + int numberProcessors; + int myNode; + // int processorNameLen; + // char* processorName; + int natomsRow,natomsCol; + int numberCols,numberRows; + int nmolsRow,nmolsCol,nmolsLocal; + + int simTotAtoms, simTotBonds, simTotBends, simTotTorsions; + int simTotSRI, simTotNmol; + };