1 |
#ifdef __C |
2 |
#ifndef __FSIMULATION |
3 |
#define __FSIMULATION |
4 |
/** This header provides dual access for the simulation 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 |
double dielect; |
11 |
int SIM_uses_PBC; |
12 |
int SIM_uses_LJ; |
13 |
int SIM_uses_sticky; |
14 |
int SIM_uses_charges; |
15 |
int SIM_uses_dipoles; |
16 |
int SIM_uses_RF; |
17 |
int SIM_uses_GB; |
18 |
int SIM_uses_EAM; |
19 |
} simtype; |
20 |
#endif //__FSIMULATION |
21 |
#endif //__C |
22 |
|
23 |
#ifdef __FORTRAN90 |
24 |
|
25 |
type, public :: simtype |
26 |
PRIVATE |
27 |
SEQUENCE |
28 |
!! Dielectric Constant for reaction field |
29 |
real ( kind = dp ) :: dielect = 0.0_dp |
30 |
!! Periodic Boundry Conditions |
31 |
logical :: SIM_uses_PBC |
32 |
logical :: SIM_uses_LJ |
33 |
logical :: SIM_uses_sticky |
34 |
logical :: SIM_uses_charges |
35 |
logical :: SIM_uses_dipoles |
36 |
logical :: SIM_uses_RF |
37 |
logical :: SIM_uses_GB |
38 |
logical :: SIM_uses_EAM |
39 |
end type simtype |
40 |
#endif |