| 1 |
chuckv |
131 |
#ifndef __MPISIMULATION__ |
| 2 |
|
|
#define __MPISIMULATION__ |
| 3 |
chuckv |
121 |
|
| 4 |
chuckv |
194 |
#include "SimInfo.hpp" |
| 5 |
chuckv |
195 |
#include "MakeStamps.hpp" |
| 6 |
chuckv |
215 |
#define __C |
| 7 |
|
|
#include "mpiComponentPlan.h" |
| 8 |
chuckv |
194 |
|
| 9 |
chuckv |
215 |
|
| 10 |
chuckv |
121 |
class mpiSimulation{ |
| 11 |
|
|
public: |
| 12 |
|
|
|
| 13 |
chuckv |
194 |
mpiSimulation(SimInfo* the_entryPlug); |
| 14 |
|
|
~mpiSimulation(); |
| 15 |
|
|
|
| 16 |
mmeineke |
199 |
void divideLabor( void ); |
| 17 |
chuckv |
194 |
|
| 18 |
chuckv |
221 |
int getMyNode(void) { return myNode; } |
| 19 |
chuckv |
223 |
int getNumberProcessors(void) { return numberProcessors; } |
| 20 |
chuckv |
221 |
int getMyMolStart( void ) { return myMolStart; } |
| 21 |
|
|
int getMyMolEnd( void ) { return myMlEnd; } |
| 22 |
|
|
int getMyMol( void ) { return myMol; } |
| 23 |
|
|
int getMyAtomStart( void ) { return myAtomStart; } |
| 24 |
|
|
int getMyAtomEnd( void ) { return myAtomEnd; } |
| 25 |
|
|
int getMyNlocal( void ) { return myNlocal; } |
| 26 |
mmeineke |
208 |
|
| 27 |
chuckv |
221 |
int getTotAtoms( void ) { return simTotAtoms; } |
| 28 |
chuckv |
194 |
|
| 29 |
chuckv |
121 |
|
| 30 |
|
|
private: |
| 31 |
|
|
|
| 32 |
|
|
protected: |
| 33 |
chuckv |
194 |
SimInfo* entryPlug; |
| 34 |
chuckv |
215 |
mpiSimData* mpiPlug; |
| 35 |
chuckv |
121 |
|
| 36 |
chuckv |
215 |
// int *myIdents; // is needed by Cpp only. It tells the molecule which stamp it is. |
| 37 |
mmeineke |
201 |
|
| 38 |
chuckv |
121 |
}; |
| 39 |
chuckv |
131 |
|
| 40 |
chuckv |
223 |
|
| 41 |
|
|
/** |
| 42 |
|
|
The following pointer is the global declaration of the mpiSim |
| 43 |
|
|
object created when the mpiSimulation creation routine is |
| 44 |
|
|
called. Every one who includes the header file will then have |
| 45 |
|
|
access to all of the routines in mnpiSimulation class. |
| 46 |
|
|
*/ |
| 47 |
|
|
|
| 48 |
chuckv |
215 |
extern mpiSimulation* mpiSim; |
| 49 |
chuckv |
131 |
|
| 50 |
|
|
#endif |