1 |
subroutine setElectrostaticSummationMethod(the_ESM) |
2 |
use electrostatic_module, ONLY : module_setESM => setElectrostaticSummationMethod |
3 |
integer,intent(inout) :: the_ESM |
4 |
call module_setESM(the_ESM) |
5 |
end subroutine setElectrostaticSummationMethod |
6 |
|
7 |
subroutine setScreeningMethod(the_SM) |
8 |
use electrostatic_module, ONLY : module_setSM => setScreeningMethod |
9 |
integer,intent(inout) :: the_SM |
10 |
call module_setSM(the_SM) |
11 |
end subroutine setScreeningMethod |
12 |
|
13 |
subroutine setElectrostaticCutoffRadius(the_rcut, the_rsw) |
14 |
|
15 |
use definitions, ONLY : dp |
16 |
use electrostatic_module, ONLY : module_setECR => setElectrostaticCutoffRadius |
17 |
|
18 |
real(kind=dp), intent(inout) :: the_rcut |
19 |
real(kind=dp), intent(inout) :: the_rsw |
20 |
call module_setECR(the_rcut, the_rsw) |
21 |
|
22 |
end subroutine setElectrostaticCutoffRadius |
23 |
|
24 |
subroutine setDampingAlpha(the_alpha) |
25 |
|
26 |
use definitions, ONLY : dp |
27 |
use electrostatic_module, ONLY : module_setDA => setDampingAlpha |
28 |
|
29 |
real(kind=dp),intent(inout) :: the_alpha |
30 |
call module_setDA(the_alpha) |
31 |
|
32 |
end subroutine setDampingAlpha |
33 |
|
34 |
subroutine setReactionFieldDielectric(the_dielectric) |
35 |
|
36 |
use definitions, ONLY : dp |
37 |
use electrostatic_module, ONLY : module_setRFD => setReactionFieldDielectric |
38 |
|
39 |
real(kind=dp),intent(inout) :: the_dielectric |
40 |
call module_setRFD(the_dielectric) |
41 |
|
42 |
end subroutine setReactionFieldDielectric |
43 |
|
44 |
subroutine newElectrostaticType(atp, status) |
45 |
|
46 |
use electrostatic_module, ONLY : module_newElectrostaticType => newElectrostaticType |
47 |
|
48 |
#define __FORTRAN90 |
49 |
#include "types/AtomTypeProperties.h" |
50 |
|
51 |
type(AtomTypeProperties), intent(in) :: atp |
52 |
integer, intent(inout) :: status |
53 |
|
54 |
integer :: ident |
55 |
logical :: is_Electrostatic, is_Charge, is_Dipole |
56 |
logical :: is_SplitDipole, is_Quadrupole, is_Tap |
57 |
|
58 |
ident = atp%ident |
59 |
is_Electrostatic = ((atp%is_Charge .ne. 0) .or. & |
60 |
(atp%is_Dipole .ne. 0)) .or. & |
61 |
(atp%is_Quadrupole .ne. 0) |
62 |
is_Charge = (atp%is_Charge .ne. 0) |
63 |
is_Dipole = (atp%is_Dipole .ne. 0) |
64 |
is_SplitDipole = (atp%is_SplitDipole .ne. 0) |
65 |
is_Quadrupole = (atp%is_Quadrupole .ne. 0) |
66 |
is_Tap = (atp%is_StickyPower .ne. 0) |
67 |
|
68 |
call module_newElectrostaticType(ident, is_Charge, is_Dipole, & |
69 |
is_SplitDipole, is_Quadrupole, is_Tap, status) |
70 |
|
71 |
end subroutine newElectrostaticType |
72 |
|
73 |
subroutine setCharge(ident, charge, status) |
74 |
|
75 |
use definitions, ONLY : dp |
76 |
use electrostatic_module, ONLY : module_setCharge => setCharge |
77 |
|
78 |
integer,intent(inout) :: ident |
79 |
real(kind=dp),intent(inout) :: charge |
80 |
integer,intent(inout) :: status |
81 |
|
82 |
call module_setCharge(ident, charge, status) |
83 |
|
84 |
end subroutine setCharge |
85 |
|
86 |
subroutine setDipoleMoment(ident, dipole_moment, status) |
87 |
|
88 |
use definitions, ONLY : dp |
89 |
use electrostatic_module, ONLY : module_setDipoleMoment => setDipoleMoment |
90 |
|
91 |
integer,intent(inout) :: ident |
92 |
real(kind=dp),intent(inout) :: dipole_moment |
93 |
integer,intent(inout) :: status |
94 |
|
95 |
call module_setDipoleMoment(ident, dipole_moment, status) |
96 |
|
97 |
end subroutine setDipoleMoment |
98 |
|
99 |
subroutine setSplitDipoleDistance(ident, split_dipole_distance, status) |
100 |
|
101 |
use definitions, ONLY : dp |
102 |
use electrostatic_module, ONLY : module_setSplitDipoleDistance => setSplitDipoleDistance |
103 |
|
104 |
integer,intent(inout) :: ident |
105 |
real(kind=dp),intent(inout) :: split_dipole_distance |
106 |
integer,intent(inout) :: status |
107 |
|
108 |
call module_setSplitDipoleDistance(ident, split_dipole_distance, status) |
109 |
|
110 |
end subroutine setSplitDipoleDistance |
111 |
|
112 |
subroutine setQuadrupoleMoments(ident, quadrupole_moments, status) |
113 |
|
114 |
use definitions, ONLY : dp |
115 |
use electrostatic_module, ONLY : module_setQuadrupoleMoments => setQuadrupoleMoments |
116 |
|
117 |
integer,intent(inout) :: ident |
118 |
real(kind=dp),intent(inout),dimension(3) :: quadrupole_moments |
119 |
integer,intent(inout) :: status |
120 |
|
121 |
call module_setQuadrupoleMoments(ident, quadrupole_moments, status) |
122 |
|
123 |
end subroutine setQuadrupoleMoments |
124 |
|
125 |
subroutine destroyElectrostaticTypes() |
126 |
use electrostatic_module, ONLY: m_destroyElectrostaticTypes =>destroyElectrostaticTypes |
127 |
|
128 |
call m_destroyElectrostaticTypes() |
129 |
|
130 |
end subroutine destroyElectrostaticTypes |