Skip to content

Commit

Permalink
Merge pull request #32 from j34ni/fix-cam_cesm2_1_rel_05-Nor
Browse files Browse the repository at this point in the history
 Fixed test related to freezing of rain to produce ice if mean rain sze is smaller than Dcs
  • Loading branch information
MichaelSchulzMETNO authored Feb 24, 2021
2 parents b4bb869 + 374af39 commit 337583b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/NorESM/micro_mg2_0.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1733,11 +1733,13 @@ subroutine micro_mg_tend ( &
if (do_cldice) then

! freezing of rain to produce ice if mean rain size is smaller than Dcs
if (lamr(i,k) > qsmall .and. 1._r8/lamr(i,k) < Dcs) then
mnuccri(i,k)=mnuccr(i,k)
nnuccri(i,k)=nnuccr(i,k)
mnuccr(i,k)=0._r8
nnuccr(i,k)=0._r8
if (lamr(i,k) > qsmall) then
if (1._r8/lamr(i,k) < Dcs) then
mnuccri(i,k)=mnuccr(i,k)
nnuccri(i,k)=nnuccr(i,k)
mnuccr(i,k)=0._r8
nnuccr(i,k)=0._r8
end if
end if
end if

Expand Down

0 comments on commit 337583b

Please sign in to comment.