ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/mpiComponentPlan.h
Revision: 836
Committed: Tue Oct 28 22:25:46 2003 UTC (20 years, 8 months ago) by mmeineke
Content type: text/plain
File size: 1274 byte(s)
Log Message:
did a complete overhaul of how c calls fortran. All function pointers and fortran calls are rigidly typecast now.

File Contents

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