16 |
|
#define __FORTRAN90 |
17 |
|
#include "fSimulation.h" |
18 |
|
|
19 |
< |
type (simtype), public :: thisSim |
19 |
> |
type (simtype), public, save :: thisSim |
20 |
|
|
21 |
|
logical, save :: simulation_setup_complete = .false. |
22 |
|
|
36 |
|
public :: getDielect |
37 |
|
public :: SimUsesPBC |
38 |
|
public :: SimUsesLJ |
39 |
+ |
public :: SimUsesCharges |
40 |
|
public :: SimUsesDipoles |
41 |
|
public :: SimUsesSticky |
42 |
|
public :: SimUsesRF |
45 |
|
public :: SimRequiresPrepairCalc |
46 |
|
public :: SimRequiresPostpairCalc |
47 |
|
public :: SimUsesDirectionalAtoms |
48 |
+ |
public :: SimUsesMolecularCutoffs |
49 |
|
|
50 |
|
contains |
51 |
|
|
144 |
|
deallocate(c_idents_Row) |
145 |
|
endif |
146 |
|
|
147 |
< |
#else |
147 |
> |
#endif |
148 |
> |
|
149 |
> |
! We build the local atid's for both mpi and nonmpi |
150 |
|
do i = 1, nLocal |
151 |
|
|
152 |
|
me = getFirstMatchingElement(atypes, "c_ident", c_idents(i)) |
153 |
|
atid(i) = me |
154 |
|
|
155 |
|
enddo |
156 |
< |
#endif |
156 |
> |
|
157 |
|
|
158 |
|
|
159 |
|
|
210 |
|
doesit = thisSim%SIM_uses_sticky |
211 |
|
end function SimUsesSticky |
212 |
|
|
213 |
+ |
function SimUsesCharges() result(doesit) |
214 |
+ |
logical :: doesit |
215 |
+ |
doesit = thisSim%SIM_uses_charges |
216 |
+ |
end function SimUsesCharges |
217 |
+ |
|
218 |
|
function SimUsesDipoles() result(doesit) |
219 |
|
logical :: doesit |
220 |
|
doesit = thisSim%SIM_uses_dipoles |
241 |
|
thisSim%SIM_uses_GB .or. thisSim%SIM_uses_RF |
242 |
|
end function SimUsesDirectionalAtoms |
243 |
|
|
244 |
+ |
function SimUsesMolecularCutoffs() result(doesit) |
245 |
+ |
logical :: doesit |
246 |
+ |
doesit = thisSim%SIM_uses_molecular_cutoffs |
247 |
+ |
end function SimUsesMolecularCutoffs |
248 |
+ |
|
249 |
|
function SimRequiresPrepairCalc() result(doesit) |
250 |
|
logical :: doesit |
251 |
|
doesit = thisSim%SIM_uses_EAM |