1 |
mmeineke |
285 |
#ifdef __C |
2 |
|
|
#ifndef __FSIMULATION |
3 |
|
|
#define __FSIMULATION |
4 |
gezelter |
312 |
/** 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 |
mmeineke |
285 |
typedef struct{ |
10 |
|
|
double box[3]; |
11 |
|
|
double rlist; |
12 |
|
|
double rcut; |
13 |
|
|
double rlistsq; |
14 |
|
|
double rcutsq; |
15 |
|
|
double rcut6; |
16 |
gezelter |
312 |
double rrf; |
17 |
|
|
double rt; |
18 |
mmeineke |
285 |
int natoms; |
19 |
|
|
int usePBC; |
20 |
gezelter |
309 |
int do_stress; |
21 |
mmeineke |
285 |
char ensemble[100]; |
22 |
|
|
char mixingRule[100]; |
23 |
|
|
} simtype; |
24 |
|
|
#endif //__FSIMULATION |
25 |
|
|
#endif //__C |
26 |
|
|
|
27 |
|
|
#ifdef __FORTRAN90 |
28 |
|
|
|
29 |
gezelter |
312 |
integer, parameter :: string_len = 100 |
30 |
|
|
type, public :: simtype |
31 |
|
|
PRIVATE |
32 |
|
|
SEQUENCE |
33 |
|
|
!! Periodic Box |
34 |
|
|
real ( kind = dp ), dimension(3) :: box |
35 |
|
|
!! List Cutoff |
36 |
|
|
real ( kind = dp ) :: rlist = 0.0_dp |
37 |
|
|
!! Radial cutoff |
38 |
|
|
real ( kind = dp ) :: rcut = 0.0_dp |
39 |
|
|
!! List cutoff squared |
40 |
|
|
real ( kind = dp ) :: rlistsq = 0.0_dp |
41 |
|
|
!! Radial Cutoff squared |
42 |
|
|
real ( kind = dp ) :: rcutsq = 0.0_dp |
43 |
|
|
!! Radial Cutoff^6 |
44 |
|
|
real ( kind = dp ) :: rcut6 = 0.0_dp |
45 |
|
|
!! Reaction Field sphere radius |
46 |
|
|
real ( kind = dp ) :: rrf = 0.0_dp |
47 |
|
|
!! Taper radius for dipole and reaction field switching function |
48 |
|
|
real ( kind = dp ) :: rt = 0.0_dp |
49 |
|
|
!! Number of particles on this processor |
50 |
|
|
integer :: nLRparticles |
51 |
|
|
!! Periodic Boundry Conditions |
52 |
|
|
logical :: use_pbc |
53 |
|
|
!! Calculate stress tensor and virial? |
54 |
|
|
logical :: do_stress |
55 |
|
|
!! Ensemble must be defined inside of C |
56 |
|
|
character(len = string_len) :: ensemble |
57 |
|
|
!! Mixing Rules must be defined inside of C |
58 |
|
|
character(len = string_len) :: mixingRule |
59 |
|
|
end type simtype |
60 |
mmeineke |
285 |
#endif |