# | Line 1 | Line 1 | |
---|---|---|
1 | + | #ifndef __MPISIMULATION__ |
2 | + | #define __MPISIMULATION__ |
3 | ||
4 | + | #include "SimInfo.hpp" |
5 | + | #include "MakeStamps.hpp" |
6 | ||
7 | class mpiSimulation{ | |
8 | public: | |
9 | ||
10 | < | mpiSimulation(); |
11 | < | ~mpiSimulation(); |
10 | > | mpiSimulation(SimInfo* the_entryPlug); |
11 | > | ~mpiSimulation(); |
12 | > | |
13 | > | void divideLabor( void ); |
14 | > | |
15 | > | int getMyNode(void) { return myNode; } |
16 | > | int getMyMolStart( void ) { return myMolStart; } |
17 | > | int getMyMolEnd( void ) { return myMlEnd; } |
18 | > | int getMyMol( void ) { return myMol; } |
19 | > | int getMyAtomStart( void ) { return myAtomStart; } |
20 | > | int getMyAtomEnd( void ) { return myAtomEnd; } |
21 | > | int getMyNlocal( void ) { return myNlocal; } |
22 | ||
23 | < | int getMyNode(void) {return myNode;} |
24 | < | int mpiInitSimulation(); |
11 | < | int mpiDistSimulation(); |
23 | > | int getTotAtoms( void ) { return simTotAtoms; } |
24 | > | |
25 | ||
26 | private: | |
27 | ||
28 | protected: | |
29 | < | int myMolStart; |
30 | < | int myMolEnd; |
31 | < | int myMol; |
32 | < | int numberProcessors; |
33 | < | int myNode; |
34 | < | int processorNameLen; |
35 | < | char processorName[MPI_MAX_PROCESSOR_NAME]; |
36 | < | int natomsRow,natomsCol,natomsStart,natomsEnd; |
37 | < | int numberCols,numberRows; |
38 | < | int nmolsRow,nmolsCol,nmolsLocal; |
29 | > | SimInfo* entryPlug; |
30 | > | |
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; |
44 | ||
45 | + | |
46 | + | int simTotAtoms, simTotBonds, simTotBends, simTotTorsions; |
47 | + | int simTotSRI, simTotNmol; |
48 | + | |
49 | }; | |
50 | + | |
51 | + | |
52 | + | #endif |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |