| 1 | 
chuckv | 
121 | 
 | 
| 2 | 
  | 
  | 
 | 
| 3 | 
  | 
  | 
class mpiSimulation{ | 
| 4 | 
  | 
  | 
public: | 
| 5 | 
  | 
  | 
 | 
| 6 | 
  | 
  | 
    mpiSimulation(); | 
| 7 | 
  | 
  | 
    ~mpiSimulation(); | 
| 8 | 
  | 
  | 
 | 
| 9 | 
  | 
  | 
    int  getMyNode(void) {return myNode;} | 
| 10 | 
  | 
  | 
    int  mpiInitSimulation(); | 
| 11 | 
  | 
  | 
    int  mpiDistSimulation(); | 
| 12 | 
  | 
  | 
 | 
| 13 | 
  | 
  | 
private: | 
| 14 | 
  | 
  | 
 | 
| 15 | 
  | 
  | 
protected: | 
| 16 | 
  | 
  | 
    int myMolStart; | 
| 17 | 
  | 
  | 
    int myMolEnd; | 
| 18 | 
  | 
  | 
    int myMol; | 
| 19 | 
  | 
  | 
    int  numberProcessors; | 
| 20 | 
  | 
  | 
    int  myNode; | 
| 21 | 
  | 
  | 
    int  processorNameLen; | 
| 22 | 
  | 
  | 
    char processorName[MPI_MAX_PROCESSOR_NAME]; | 
| 23 | 
  | 
  | 
    int  natomsRow,natomsCol,natomsStart,natomsEnd; | 
| 24 | 
  | 
  | 
    int  numberCols,numberRows; | 
| 25 | 
  | 
  | 
    int  nmolsRow,nmolsCol,nmolsLocal; | 
| 26 | 
  | 
  | 
 | 
| 27 | 
  | 
  | 
}; |