3 |
|
|
4 |
|
#include "SimInfo.hpp" |
5 |
|
#include "MakeStamps.hpp" |
6 |
+ |
#define __C |
7 |
+ |
#include "mpiComponentPlan.h" |
8 |
|
|
9 |
+ |
|
10 |
|
class mpiSimulation{ |
11 |
|
public: |
12 |
|
|
15 |
|
|
16 |
|
void divideLabor( void ); |
17 |
|
|
18 |
< |
int getMyNode(void) { return myNode; } |
19 |
< |
int getMyMolStart( void ) { return myMolStart; } |
20 |
< |
int getMyMolEnd( void ) { return myMlEnd; } |
21 |
< |
int getMyMol( void ) { return myMol; } |
22 |
< |
int getMyAtomStart( void ) { return myAtomStart; } |
23 |
< |
int getMyAtomEnd( void ) { return myAtomEnd; } |
24 |
< |
int getMyNlocal( void ) { return myNlocal; } |
18 |
> |
int getMyNode(void) { return myNode; } |
19 |
> |
int getNumberProcessors(void) { return numberProcessors; } |
20 |
> |
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 |
|
|
27 |
< |
int getTotAtoms( void ) { return simTotAtoms; } |
27 |
> |
int getTotAtoms( void ) { return simTotAtoms; } |
28 |
|
|
29 |
|
|
30 |
|
private: |
31 |
|
|
32 |
|
protected: |
33 |
|
SimInfo* entryPlug; |
34 |
< |
|
31 |
< |
int myMolStart; |
32 |
< |
int myMolEnd; |
33 |
< |
int myAtomStart, myAtomEnd; |
34 |
< |
int myMol; |
35 |
< |
int myNlocal; |
36 |
< |
int *myIdents; |
37 |
< |
int numberProcessors; |
38 |
< |
int myNode; |
39 |
< |
// int processorNameLen; |
40 |
< |
// char* processorName; |
41 |
< |
int natomsRow,natomsCol; |
42 |
< |
int numberCols,numberRows; |
43 |
< |
int nmolsRow,nmolsCol,nmolsLocal; |
34 |
> |
mpiSimData* mpiPlug; |
35 |
|
|
36 |
+ |
// int *myIdents; // is needed by Cpp only. It tells the molecule which stamp it is. |
37 |
|
|
46 |
– |
int simTotAtoms, simTotBonds, simTotBends, simTotTorsions; |
47 |
– |
int simTotSRI, simTotNmol; |
48 |
– |
|
38 |
|
}; |
39 |
|
|
40 |
|
|
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 |
+ |
extern mpiSimulation* mpiSim; |
49 |
+ |
|
50 |
|
#endif |