50 |
|
type (Vector), pointer, public :: atypes => null() |
51 |
|
|
52 |
|
public :: new_atype |
53 |
< |
|
53 |
> |
public :: delete_atypes |
54 |
> |
|
55 |
|
contains |
56 |
< |
|
56 |
> |
|
57 |
|
subroutine new_atype(ident, is_Directional, is_LennardJones, & |
58 |
|
is_Electrostatic, is_Charge, is_Dipole, is_Quadrupole, & |
59 |
< |
is_Sticky, is_GayBerne, is_EAM, is_Shape, is_FLARB, status) |
60 |
< |
|
59 |
> |
is_Sticky, is_StickyPower, is_GayBerne, is_EAM, is_Shape, & |
60 |
> |
is_FLARB, status) |
61 |
> |
integer :: myATID, c_ident |
62 |
|
integer,intent(in) :: ident |
63 |
|
logical,intent(in) :: is_Directional, is_LennardJones, is_Electrostatic |
64 |
|
logical,intent(in) :: is_Charge, is_Dipole, is_Quadrupole |
65 |
< |
logical,intent(in) :: is_Sticky, is_GayBerne, is_EAM, is_Shape, is_FLARB |
65 |
> |
logical,intent(in) :: is_Sticky, is_StickyPower, is_GayBerne, is_EAM |
66 |
> |
logical,intent(in) :: is_Shape, is_FLARB |
67 |
|
integer,intent(out) :: status |
68 |
|
|
69 |
|
integer :: me |
70 |
< |
|
70 |
> |
|
71 |
|
status = 0 |
72 |
< |
|
72 |
> |
|
73 |
|
if (.not. associated(atypes)) then |
74 |
|
!! There are 17 properties to worry about for now. |
75 |
|
!! Fix this if needed for more atomic properties |
79 |
|
return |
80 |
|
endif |
81 |
|
endif |
82 |
< |
|
82 |
> |
|
83 |
|
me = addElement(atypes) |
84 |
|
|
85 |
|
call setElementProperty(atypes, me, "c_ident", ident) |
83 |
– |
|
86 |
|
call setElementProperty(atypes, me, "is_Directional", is_Directional) |
87 |
|
call setElementProperty(atypes, me, "is_LennardJones", is_LennardJones) |
88 |
|
call setElementProperty(atypes, me, "is_Electrostatic", is_Electrostatic) |
90 |
|
call setElementProperty(atypes, me, "is_Dipole", is_Dipole) |
91 |
|
call setElementProperty(atypes, me, "is_Quadrupole", is_Quadrupole) |
92 |
|
call setElementProperty(atypes, me, "is_Sticky", is_Sticky) |
93 |
+ |
call setElementProperty(atypes, me, "is_StickyPower", is_StickyPower) |
94 |
|
call setElementProperty(atypes, me, "is_GayBerne", is_GayBerne) |
95 |
|
call setElementProperty(atypes, me, "is_EAM", is_EAM) |
96 |
|
call setElementProperty(atypes, me, "is_Shape", is_Shape) |
97 |
|
call setElementProperty(atypes, me, "is_FLARB", is_FLARB) |
98 |
< |
|
98 |
> |
|
99 |
|
end subroutine new_atype |
100 |
< |
|
100 |
> |
|
101 |
> |
subroutine delete_atypes() |
102 |
> |
atypes => destroy(atypes) |
103 |
> |
end subroutine delete_atypes |
104 |
> |
|
105 |
|
end module atype_module |
106 |
|
|