--- trunk/mdtools/headers/mpiSimulation.hpp 2002/12/04 21:19:38 194 +++ trunk/mdtools/headers/mpiSimulation.hpp 2002/12/19 21:59:51 215 @@ -2,6 +2,9 @@ #define __MPISIMULATION__ #include "SimInfo.hpp" +#include "MakeStamps.hpp" +#define __C +#include "mpiComponentPlan.h" class mpiSimulation{ @@ -10,30 +13,29 @@ class mpiSimulation{ (public) mpiSimulation(SimInfo* the_entryPlug); ~mpiSimulation(); - void divideLabor(int nComponents, MoleculeStamp** compStamps, int* componentsNmol ); + void divideLabor( void ); - int getMyNode(void) {return myNode;} + 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 getTotAtoms( void ) { return simTotAtoms; } - private: protected: SimInfo* entryPlug; - - 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; - + mpiSimData* mpiPlug; + // int *myIdents; // is needed by Cpp only. It tells the molecule which stamp it is. + }; +extern mpiSimulation* mpiSim; #endif