# | 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(int nComponents, MoleculeStamp** compStamps, int* componentsNmol ); |
14 | > | |
15 | > | int getMyNode(void) {return myNode;} |
16 | > | |
17 | > | |
18 | ||
9 | – | int getMyNode(void) {return myNode;} |
10 | – | int mpiInitSimulation(); |
11 | – | int mpiDistSimulation(); |
12 | – | |
19 | private: | |
20 | ||
21 | protected: | |
22 | < | int myMolStart; |
23 | < | int myMolEnd; |
24 | < | int myMol; |
25 | < | int numberProcessors; |
26 | < | int myNode; |
27 | < | int processorNameLen; |
28 | < | char processorName[MPI_MAX_PROCESSOR_NAME]; |
29 | < | int natomsRow,natomsCol,natomsStart,natomsEnd; |
30 | < | int numberCols,numberRows; |
31 | < | int nmolsRow,nmolsCol,nmolsLocal; |
22 | > | SimInfo* entryPlug; |
23 | > | |
24 | > | int myMolStart; |
25 | > | int myMolEnd; |
26 | > | int myAtomStart, myAtomEnd; |
27 | > | int myMol; |
28 | > | int myNlocal; |
29 | > | int numberProcessors; |
30 | > | int myNode; |
31 | > | // int processorNameLen; |
32 | > | // char* processorName; |
33 | > | int natomsRow,natomsCol; |
34 | > | int numberCols,numberRows; |
35 | > | int nmolsRow,nmolsCol,nmolsLocal; |
36 | > | |
37 | ||
38 | }; | |
39 | + | |
40 | + | |
41 | + | #endif |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |