10 |
|
PRIVATE |
11 |
|
|
12 |
|
#define __FORTRAN90 |
13 |
< |
#include "../headers/fsimulation.h" |
13 |
> |
#include "fSimulation.h" |
14 |
|
|
15 |
|
type (simtype), public :: thisSim |
16 |
|
|
17 |
|
logical :: setSim = .false. |
18 |
|
|
19 |
+ |
integer,public :: natoms |
20 |
|
|
20 |
– |
|
21 |
|
public :: getBox |
22 |
|
public :: getRcut |
23 |
|
public :: getRlist |
27 |
|
public :: isPBC |
28 |
|
public :: getStringLen |
29 |
|
public :: returnMixingRules |
30 |
+ |
public :: doStress |
31 |
|
|
32 |
|
! public :: setRcut |
33 |
|
interface getBox |
121 |
|
|
122 |
|
end subroutine getRlist |
123 |
|
|
124 |
< |
|
124 |
< |
|
124 |
> |
|
125 |
|
pure function getNlocal() result(nlocal) |
126 |
|
integer :: nlocal |
127 |
|
nlocal = thisSim%nLRparticles |
128 |
|
end function getNlocal |
129 |
|
|
130 |
+ |
function doStress() result(do_stress) |
131 |
+ |
logical :: do_stress |
132 |
+ |
do_stress = thisSim%do_stress |
133 |
+ |
end function doStress |
134 |
|
|
135 |
|
function isEnsemble(this_ensemble) result(is_this_ensemble) |
136 |
|
character(len = *) :: this_ensemble |
137 |
< |
logical :: is_this_enemble |
137 |
> |
logical :: is_this_ensemble |
138 |
|
is_this_ensemble = .false. |
139 |
|
if (this_ensemble == thisSim%ensemble) is_this_ensemble = .true. |
140 |
|
end function isEnsemble |
141 |
< |
|
141 |
> |
|
142 |
|
function returnEnsemble() result(thisEnsemble) |
143 |
|
character (len = len(thisSim%ensemble)) :: thisEnsemble |
144 |
|
thisEnsemble = thisSim%ensemble |
158 |
|
pure function getStringLen() result (thislen) |
159 |
|
integer :: thislen |
160 |
|
thislen = string_len |
161 |
< |
end function setStringLen |
161 |
> |
end function getStringLen |
162 |
|
|
163 |
|
end module simulation |