Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aerosol deep convective transport (SAMF) and aerosol scavenging (RAS) #714

Merged
merged 8 commits into from
Aug 13, 2021
5 changes: 3 additions & 2 deletions physics/rascnv.F90
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,9 @@ subroutine rascnv_run(IM, k, itc, ntc, ntr, dt, dtf &
!
fscav_ = -999.0_kp ! By default no scavenging
if (itc > 0 .and. ntc > 0) then
if (ntr >= itc + ntc - 3) then
fscav_(itc:ntc) = fscav
n = itc + ntc - 1
if (n <= ntr + 2) then
fscav_(itc:n) = fscav
else
errmsg = 'Error in rascnv_run: test ntr >= itc + ntc - 3 FAILED'
errflg = 1
Expand Down
2 changes: 1 addition & 1 deletion physics/samfdeepcnv.f
Original file line number Diff line number Diff line change
Expand Up @@ -2683,7 +2683,7 @@ subroutine samfdeepcnv_run (im,km,itc,ntc,cliq,cp,cvap, &

if (do_aerosols)
& call samfdeepcnv_aerosols(im, im, km, itc, ntc, ntr, delt,
& xlamde, xlamdd, cnvflg, jmin, kb, kmax, kbcon, ktcon, fscav,
& xlamde, xlamdd, cnvflg, jmin, kb, kmax, kd94, ktcon, fscav,
& edto, xlamd, xmb, c0t, eta, etad, zi, xlamue, xlamud, delp,
& qtr, qaero)

Expand Down