1 |
– |
#ifdef __C |
1 |
|
#ifndef __FFORCEFIELD |
2 |
|
#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 |
3 |
|
|
4 |
< |
#ifdef __FORTRAN90 |
4 |
> |
#define LB_MIXING_RULE 1 |
5 |
> |
#define EXPLICIT_MIXING_RULE 2 |
6 |
|
|
7 |
< |
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 |
7 |
> |
|
8 |
|
#endif |