1 |
module lj_ff |
2 |
use simulation |
3 |
use definitions, ONLY : dp, ndim |
4 |
implicit none |
5 |
|
6 |
integer, save :: n_lj_atypes = 0 |
7 |
|
8 |
type, public :: lj_atype |
9 |
private |
10 |
sequence |
11 |
integer :: atype_ident = 0 |
12 |
character(len = 15) :: name = "NULL" |
13 |
real ( kind = dp ) :: mass = 0.0_dp |
14 |
real ( kind = dp ) :: epslon = 0.0_dp |
15 |
real ( kind = dp ) :: sigma = 0.0_dp |
16 |
type (lj_atype), pointer :: next => null() |
17 |
end type lj_atype |
18 |
|
19 |
type (lj_atype), pointer :: lj_atype_list => null() |
20 |
|
21 |
public :: new_lj_atype |
22 |
|
23 |
contains |
24 |
|
25 |
subroutine new_lj_atype(name,mass,epslon,sigma,status) |
26 |
character( len = 15 ) :: name |
27 |
real( kind = dp ), intent(in) :: mass |
28 |
real( kind = dp ), intent(in) :: epslon |
29 |
real( kind = dp ), intent(in) :: sigam |
30 |
integer, intent(out) :: status |
31 |
|
32 |
status = 0 |
33 |
|
34 |
end subroutine new_lj_atype |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
end module lj_ff |