Skip to content

Commit

Permalink
Bug fix for divide by zero in hail size
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersJensen-NOAA committed Nov 4, 2023
1 parent 6ea2bce commit 571cb59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions physics/module_mp_thompson.F90
Original file line number Diff line number Diff line change
Expand Up @@ -6527,6 +6527,8 @@ function hail_mass_99th_percentile(kts, kte, qg, temperature, pressure, qv) resu
rho(k) = 0.622*pressure(k)/(R*temperature(k)*(max(1.e-10, qv(k))+0.622))
if (qg(k) .gt. R1) then
rg(k) = qg(k)*rho(k)
else
rg(k) = R1
endif
enddo

Expand Down

0 comments on commit 571cb59

Please sign in to comment.