| 1 |
#ifdef __C |
| 2 |
#ifndef __MPICOMPONENTPLAN_H__ |
| 3 |
#define __MPICOMPONENTPLAN_H__ |
| 4 |
|
| 5 |
|
| 6 |
/** This header provides dual access for mpiComponentPlan |
| 7 |
structure in fortran and in c, C++. |
| 8 |
*/ |
| 9 |
|
| 10 |
typedef struct{ |
| 11 |
int nMolGlobal; |
| 12 |
int nAtomsGlobal; |
| 13 |
int nGroupsGlobal; |
| 14 |
int nBondsGlobal; |
| 15 |
int nBendsGlobal; |
| 16 |
int nTorsionsGlobal; |
| 17 |
int nSRIGlobal; |
| 18 |
int nMolLocal; |
| 19 |
int nAtomsLocal; |
| 20 |
int nGroupsLocal; |
| 21 |
int myNode; |
| 22 |
int nProcessors; |
| 23 |
int rowComm; |
| 24 |
int columnComm; |
| 25 |
int nRows; |
| 26 |
int nColumns; |
| 27 |
int nAtomsInRow; |
| 28 |
int nAtomsInColumn; |
| 29 |
int nGroupsInRow; |
| 30 |
int nGroupsInColumn; |
| 31 |
int rowIndex; |
| 32 |
int columnIndex; |
| 33 |
} mpiSimData; |
| 34 |
|
| 35 |
#endif // __MPICOMPONENTPLAN_H__ |
| 36 |
|
| 37 |
#endif // __C |
| 38 |
|
| 39 |
|
| 40 |
#ifdef __FORTRAN90 |
| 41 |
type, public :: mpiComponentPlan |
| 42 |
sequence |
| 43 |
integer :: nMolGlobal = 0 |
| 44 |
integer :: nAtomsGlobal = 0 |
| 45 |
integer :: nGroupsGlobal = 0 |
| 46 |
integer :: nBondsGlobal = 0 |
| 47 |
integer :: nBendsGlobal = 0 |
| 48 |
integer :: nTorsionsGlobal = 0 |
| 49 |
integer :: nSRIGlobal = 0 |
| 50 |
integer :: nMolLocal = 0 |
| 51 |
integer :: nAtomsLocal = 0 |
| 52 |
integer :: nGroupsLocal = 0 |
| 53 |
integer :: myNode = 0 |
| 54 |
integer :: nProcessors = 0 |
| 55 |
integer :: rowComm = 0 |
| 56 |
integer :: columnComm = 0 |
| 57 |
integer :: nRows = 0 |
| 58 |
integer :: nColumns = 0 |
| 59 |
integer :: nAtomsInRow = 0 |
| 60 |
integer :: nAtomsInColumn = 0 |
| 61 |
integer :: nGroupsInRow = 0 |
| 62 |
integer :: nGroupsInColumn = 0 |
| 63 |
integer :: rowIndex = 0 |
| 64 |
integer :: columnIndex = 0 |
| 65 |
end type mpiComponentPlan |
| 66 |
|
| 67 |
#endif |