| 6 |
|
#define __C |
| 7 |
|
#include "UseTheForce/mpiComponentPlan.h" |
| 8 |
|
|
| 9 |
< |
#include "UseTheForce/fortranWrapDefines.hpp" |
| 9 |
> |
#include "UseTheForce/DarkSide/simParallel_interface.h" |
| 10 |
|
|
| 11 |
|
class mpiSimulation{ |
| 12 |
|
public: |
| 35 |
|
int getGlobalToLocalAtom(int globalIndex) {return globalToLocalAtom[globalIndex];} |
| 36 |
|
int getGlobalToLocalGroup(int globalIndex) {return globalToLocalGroup[globalIndex];} |
| 37 |
|
|
| 38 |
– |
// sets the internal function pointer to fortran. |
| 39 |
– |
|
| 40 |
– |
void setInternal( setFortranMPI_TD fSetup){ |
| 41 |
– |
setFsimParallel = fSetup; |
| 42 |
– |
} |
| 43 |
– |
|
| 44 |
– |
|
| 38 |
|
// call at the begining and after load balancing |
| 39 |
|
|
| 40 |
|
void mpiRefresh( void ); |
| 55 |
|
vector<int> globalToLocalAtom; |
| 56 |
|
vector<int> globalToLocalGroup; |
| 57 |
|
|
| 65 |
– |
// private function to initialize the fortran side of the simulation |
| 66 |
– |
setFortranMPI_TD setFsimParallel; |
| 67 |
– |
|
| 58 |
|
// int *myIdents; // is needed by Cpp only. It tells the molecule which stamp it is. |
| 59 |
|
|
| 60 |
|
}; |
| 61 |
|
|
| 72 |
– |
|
| 62 |
|
/** |
| 63 |
|
The following pointer is the global declaration of the mpiSim |
| 64 |
|
object created when the mpiSimulation creation routine is |