1 |
chuckv |
131 |
#ifndef __MPISIMULATION__ |
2 |
|
|
#define __MPISIMULATION__ |
3 |
chuckv |
121 |
|
4 |
chuckv |
194 |
#include "SimInfo.hpp" |
5 |
|
|
|
6 |
|
|
|
7 |
chuckv |
121 |
class mpiSimulation{ |
8 |
|
|
public: |
9 |
|
|
|
10 |
chuckv |
194 |
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 |
chuckv |
121 |
|
19 |
|
|
private: |
20 |
|
|
|
21 |
|
|
protected: |
22 |
chuckv |
194 |
SimInfo* entryPlug; |
23 |
|
|
|
24 |
|
|
int myMolStart; |
25 |
|
|
int myMolEnd; |
26 |
|
|
int myMol; |
27 |
|
|
int numberProcessors; |
28 |
|
|
int myNode; |
29 |
|
|
// int processorNameLen; |
30 |
|
|
// char* processorName; |
31 |
|
|
int natomsRow,natomsCol,natomsStart,natomsEnd; |
32 |
|
|
int numberCols,numberRows; |
33 |
|
|
int nmolsRow,nmolsCol,nmolsLocal; |
34 |
|
|
|
35 |
chuckv |
121 |
|
36 |
|
|
}; |
37 |
chuckv |
131 |
|
38 |
|
|
|
39 |
|
|
#endif |