Skip to content

Commit

Permalink
Fix microphysics rate accumulation bug when ntimes > 1 (NOAA-GFDL#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerkclark authored Mar 6, 2024
1 parent 5f24469 commit 2c2dcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/gfdl_mp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ subroutine mpdrv (hydrostatic, ua, va, wa, delp, pt, qv, ql, qr, qi, qs, qg, &
! unit convert to mm/day
! -----------------------------------------------------------------------

convt = 86400. * rgrav / dts
convt = 86400. * rgrav / dtm

do i = is, ie

Expand Down Expand Up @@ -1395,7 +1395,7 @@ subroutine mpdrv (hydrostatic, ua, va, wa, delp, pt, qv, ql, qr, qi, qs, qg, &
if (fix_negative) &
call neg_adj (ks, ke, tz, dp, qvz, qlz, qrz, qiz, qsz, qgz, cond)

condensation (i) = condensation (i) + cond * convt * ntimes
condensation (i) = condensation (i) + cond * convt

! -----------------------------------------------------------------------
! fast microphysics loop
Expand Down

0 comments on commit 2c2dcb5

Please sign in to comment.