Skip to content

Commit

Permalink
Merge pull request NCAR#35 from ChunxiZhang-NOAA/bugfix/cloud_rad
Browse files Browse the repository at this point in the history
Bug fix for cloud effective radius for convective clouds (HR1)
  • Loading branch information
grantfirl authored Jan 30, 2023
2 parents 4315912 + 45ed377 commit c44a717
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions physics/radiation_clouds.f
Original file line number Diff line number Diff line change
Expand Up @@ -2212,10 +2212,16 @@ subroutine progcld_thompson_wsm6 &
!> The total condensate includes convective condensate.
do k = 1, NLAY-1
do i = 1, IX
cwp(i,k) = max(0.0, (clw(i,k,ntcw)+cnvw(i,k)*
& (1.-tem2d(i,k))) * gfac * delp(i,k))
cip(i,k) = max(0.0, (clw(i,k,ntiw) + cnvw(i,k)*
& tem2d(i,k)) *gfac * delp(i,k))
tem1 = cnvw(i,k)*(1.-tem2d(i,k))
cwp(i,k) = max(0.0, (clw(i,k,ntcw)+tem1) *
& gfac * delp(i,k))
if(tem1 > 1.e-12 .and. clw(i,k,ntcw) < 1.e-12)
& rew(i,k)=reliq_def
tem2 = cnvw(i,k)*tem2d(i,k)
cip(i,k) = max(0.0, (clw(i,k,ntiw) + tem2 )
& *gfac * delp(i,k))
if(tem2 > 1.e-12 .and. clw(i,k,ntiw) < 1.e-12)
& rei(i,k)=reice_def
crp(i,k) = max(0.0, clw(i,k,ntrw) * gfac * delp(i,k))
csp(i,k) = max(0.0, clw(i,k,ntsw) * gfac * delp(i,k))
enddo
Expand Down

0 comments on commit c44a717

Please sign in to comment.