1 |
#ifdef __C |
2 |
#ifndef __FFORCEFIELD |
3 |
#define __FFORCEFIELD |
4 |
/** This header provides dual access for the force field structure between |
5 |
fortran and C for the simtype structure. NOTE: Sequence of struct |
6 |
components must match between C and fortran and in general be packed |
7 |
double,int,char. |
8 |
*/ |
9 |
typedef struct{ |
10 |
const int LB_MIXING_RULE = 1; |
11 |
const int EXPLICIT_MIXING_RULE = 2; |
12 |
int LJ_Mixing_Policy; |
13 |
int use_RF; |
14 |
} ffstruct; |
15 |
#endif //__FFORCEFIELD |
16 |
#endif //__C |
17 |
|
18 |
#ifdef __FORTRAN90 |
19 |
|
20 |
type, public :: ffstruct |
21 |
PRIVATE |
22 |
SEQUENCE |
23 |
integer :: LB_mixing_rule |
24 |
integer :: Explicit_mixing_rule |
25 |
integer :: LJ_Mixing_Policy |
26 |
logical :: use_RF_c |
27 |
end type simtype |
28 |
#endif |