| 6 |
|
use force_globals |
| 7 |
|
use vector_class |
| 8 |
|
use atype_module |
| 9 |
– |
use lj |
| 9 |
|
#ifdef IS_MPI |
| 10 |
|
use mpiSimulation |
| 11 |
|
#endif |
| 174 |
|
return |
| 175 |
|
endif |
| 176 |
|
|
| 177 |
+ |
|
| 178 |
|
do i = 1, nExcludes_Local |
| 179 |
|
excludesLocal(1,i) = CexcludesLocal(1,i) |
| 180 |
|
excludesLocal(2,i) = CexcludesLocal(2,i) |
| 183 |
|
do i = 1, nExcludes_Global |
| 184 |
|
excludesGlobal(i) = CexcludesGlobal(i) |
| 185 |
|
enddo |
| 186 |
< |
|
| 186 |
> |
|
| 187 |
|
if (status == 0) simulation_setup_complete = .true. |
| 188 |
|
|
| 189 |
|
end subroutine SimulationSetup |
| 195 |
|
thisSim%box = new_box_size |
| 196 |
|
box = thisSim%box |
| 197 |
|
|
| 198 |
– |
smallest = 1 |
| 199 |
– |
do i = 2, 3 |
| 200 |
– |
if (new_box_size(i) .lt. new_box_size(smallest)) smallest = i |
| 201 |
– |
end do |
| 202 |
– |
if (thisSim%rcut .gt. 0.5_dp * new_box_size(smallest)) & |
| 203 |
– |
call setRcut(0.5_dp * new_box_size(smallest), status) |
| 198 |
|
return |
| 199 |
|
end subroutine setBox_3d |
| 200 |
|
|
| 203 |
|
real(kind=dp) :: new_box_size |
| 204 |
|
thisSim%box(dim) = new_box_size |
| 205 |
|
box(dim) = thisSim%box(dim) |
| 212 |
– |
if (thisSim%rcut .gt. 0.5_dp * new_box_size) & |
| 213 |
– |
call setRcut(0.5_dp * new_box_size, status) |
| 206 |
|
end subroutine setBox_1d |
| 207 |
|
|
| 208 |
|
subroutine setRcut(new_rcut, status) |
| 211 |
|
thisSim%rcut = new_rcut |
| 212 |
|
rcut2 = thisSim%rcut * thisSim%rcut |
| 213 |
|
rcut6 = rcut2 * rcut2 * rcut2 |
| 222 |
– |
myStatus = 0 |
| 223 |
– |
call LJ_new_rcut(new_rcut, myStatus) |
| 224 |
– |
if (myStatus .ne. 0) then |
| 225 |
– |
write(default_error, *) 'LJ module refused our rcut!' |
| 226 |
– |
status = -1 |
| 227 |
– |
return |
| 228 |
– |
endif |
| 214 |
|
status = 0 |
| 215 |
|
return |
| 216 |
|
end subroutine setRcut |
| 265 |
|
function getRrf() result(rrf) |
| 266 |
|
real( kind = dp ) :: rrf |
| 267 |
|
rrf = thisSim%rrf |
| 268 |
+ |
write(*,*) 'getRrf = ', rrf, thisSim%rrf |
| 269 |
|
end function getRrf |
| 270 |
|
|
| 271 |
|
function getRt() result(rt) |