1 |
chuckv |
204 |
#ifdef __C |
2 |
chuckv |
206 |
/** This header provides dual access for mpiComponenPlan |
3 |
|
|
structure in fortran and in c, C++. |
4 |
chuckv |
203 |
*/ |
5 |
|
|
|
6 |
|
|
typdef struct{ |
7 |
|
|
int nMolGlobal; |
8 |
|
|
int nAtomsGlobal; |
9 |
|
|
int myMolStart; |
10 |
|
|
int myMolEnd; |
11 |
|
|
int myAtomStart; |
12 |
|
|
int myAtomEnd; |
13 |
|
|
int myMol; |
14 |
|
|
int myNlocal; |
15 |
|
|
int myNode; |
16 |
|
|
int numberProcessors; |
17 |
|
|
int rowComm; |
18 |
|
|
int columnComm; |
19 |
|
|
int numberRows; |
20 |
|
|
int numberColumns; |
21 |
|
|
int nComponentsRow; |
22 |
|
|
int nComponentsColumn; |
23 |
chuckv |
206 |
int rowIndex; |
24 |
|
|
int columnIndex; |
25 |
chuckv |
203 |
} mpiComponentPlan; |
26 |
|
|
|
27 |
|
|
|
28 |
|
|
#endif |
29 |
|
|
|
30 |
|
|
|
31 |
|
|
#ifdef __FORTRAN90 |
32 |
|
|
type, public :: mpiComponentPlan |
33 |
|
|
sequence |
34 |
|
|
integer :: nMolGlobal = 0 |
35 |
|
|
integer :: nAtomsGlobal = 0 |
36 |
|
|
integer :: myMolStart = 0 |
37 |
|
|
integer :: myMolEnd = 0 |
38 |
|
|
integer :: myAtomStart = 0 |
39 |
|
|
integer :: myAtomEnd = 0 |
40 |
|
|
integer :: myMol = 0 |
41 |
|
|
integer :: myNlocal = 0 |
42 |
|
|
integer :: myNode = 0 |
43 |
|
|
integer :: numberProcessors = 0 |
44 |
|
|
integer :: rowComm = 0 |
45 |
|
|
integer :: columnComm = 0 |
46 |
|
|
integer :: numberRows = 0 |
47 |
|
|
integer :: numberColumns = 0 |
48 |
|
|
integer :: nComponentsRow = 0 |
49 |
|
|
integer :: nComponentsColumn = 0 |
50 |
chuckv |
206 |
integer :: rowIndex = 0 |
51 |
|
|
integer :: columnIndex = 0 |
52 |
chuckv |
203 |
end type mpiComponentPlan |
53 |
|
|
|
54 |
|
|
#endif |