Skip to content
Snippets Groups Projects
Commit 0e2577a5 authored by Lucie Bakels's avatar Lucie Bakels
Browse files

Terminate particles moving above the atmosphere in backward mode due to settling

Former-commit-id: e0f530e9
parent 40a7713c
No related branches found
No related tags found
No related merge requests found
......@@ -878,11 +878,21 @@ subroutine pushpartdown(ipart)
eps=nxmax/3.e5
#ifdef ETA
if (part(ipart)%zeta.le.real(uvheight(nz),kind=dp)) &
if (part(ipart)%zeta.le.real(uvheight(nz),kind=dp)) then
if ((ldirect.eq.-1) .and. (lsettling)) then
part(ipart)%nstop=.true.
else
call set_zeta(ipart,uvheight(nz)+eps_eta)
endif
endif
#else
if (part(ipart)%z.ge.real(height(nz),kind=dp)) &
if (part(ipart)%z.ge.real(height(nz),kind=dp)) then
if ((ldirect.eq.-1) .and. (lsettling)) then
part(ipart)%nstop=.true.
else
call set_z(ipart,height(nz)-100.*eps)
endif
endif
#endif
end subroutine pushpartdown
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment