ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE_old/src/mdtools/libmdCode/fSimulation.h
(Generate patch)

Comparing trunk/OOPSE_old/src/mdtools/libmdCode/fSimulation.h (file contents):
Revision 285 by mmeineke, Wed Feb 26 18:45:57 2003 UTC vs.
Revision 329 by gezelter, Wed Mar 12 22:27:59 2003 UTC

# Line 1 | Line 1
1   #ifdef __C
2   #ifndef __FSIMULATION
3   #define __FSIMULATION
4 < /** This header provides dual access for the simulation structure between fortran and C
5 <    for the simtype structure. NOTE: Sequence of struct components must match between
6 <    C and fortran and in general be packed double,int,char.
7 < */
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 box[3];
11    double rlist;
12    double rcut;
13 <  double rlistsq;
14 <  double rcutsq;
15 <  double rcut6;
16 <  int natoms;
17 <  int usePBC;
18 <  char ensemble[100];
19 <  char mixingRule[100];
13 >  double rrf;
14 >  double rt;
15 >  double dielect;
16 >  int SIM_uses_PBC;
17 >  int SIM_uses_LJ;
18 >  int SIM_uses_sticky;
19 >  int SIM_uses_dipoles;
20 >  int SIM_uses_RF;
21 >  int SIM_uses_GB;
22 >  int SIM_uses_EAM;
23   } simtype;
24   #endif //__FSIMULATION
25   #endif //__C
26  
27   #ifdef  __FORTRAN90
28  
29 < integer, parameter :: string_len = 100
30 <
31 <  type, public :: simtype
32 <     PRIVATE
33 <     SEQUENCE
34 < !! Periodic Box    
35 <     real ( kind = dp ), dimension(3) :: box
36 < !! List Cutoff    
37 <     real ( kind = dp ) :: rlist = 0.0_dp
38 < !! Radial cutoff
39 <     real ( kind = dp ) :: rcut  = 0.0_dp
40 < !! List cutoff squared
41 <     real ( kind = dp ) :: rlistsq = 0.0_dp
42 < !! Radial Cutoff squared
43 <     real ( kind = dp ) :: rcutsq  = 0.0_dp
44 < !! Radial Cutoff^6
45 <     real ( kind = dp ) :: rcut6  = 0.0_dp
46 < !! Number of particles on this processor
47 <     integer :: nLRparticles
48 < !! Periodic Boundry Conditions
49 <     logical :: use_pbc
50 < !! Ensemble must be defined inside of C
51 <     character(len = string_len) :: ensemble
52 < !! Mixing Rules must be defined inside of C
49 <     character(len = string_len) :: mixingRule
50 <  end type simtype
29 > type, public :: simtype
30 >   PRIVATE
31 >   SEQUENCE
32 >   !! Periodic Box    
33 >   real ( kind = dp ), dimension(3) :: box
34 >   !! List Cutoff    
35 >   real ( kind = dp ) :: rlist = 0.0_dp
36 >   !! Radial cutoff
37 >   real ( kind = dp ) :: rcut  = 0.0_dp
38 >   !! Reaction Field sphere radius
39 >   real ( kind = dp ) :: rrf  = 0.0_dp
40 >   !! Taper radius for dipole and reaction field switching function
41 >   real ( kind = dp ) :: rt  = 0.0_dp
42 >   !! Dielectric Constant for reaction field
43 >   real ( kind = dp ) :: dielect = 0.0_dp
44 >   !! Periodic Boundry Conditions
45 >   logical :: SIM_uses_PBC
46 >   logical :: SIM_uses_LJ
47 >   logical :: SIM_uses_sticky
48 >   logical :: SIM_uses_dipoles
49 >   logical :: SIM_uses_RF
50 >   logical :: SIM_uses_GB
51 >   logical :: SIM_uses_EAM
52 > end type simtype
53   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines