Skip to content

Commit 252ffaf

Browse files
author
dustinswales
committed
Bug fix for uninitialized variables in RRTGMP. another one
1 parent 84212c0 commit 252ffaf

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

physics/Interstitials/UFS_SCM_NEPTUNE/GFS_rrtmgp_cloud_mp.F90

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,14 @@ subroutine GFS_rrtmgp_cloud_mp_run(nCol, nLev, nTracers, ncnd, i_cldliq, i_cldic
168168
errmsg = ''
169169
errflg = 0
170170

171+
cld_lwp(:,:) = 0.0
172+
cld_iwp(:,:) = 0.0
173+
cld_rwp(:,:) = 0.0
174+
cld_swp(:,:) = 0.0
175+
cld_reliq(:,:) = 0.0
176+
cld_reice(:,:) = 0.0
177+
cld_resnow(:,:) = 0.0
178+
cld_rerain(:,:) = 0.0
171179
! ###################################################################################
172180
! GFDL Microphysics
173181
! ("Implicit" SGS cloud-coupling to the radiation)
@@ -585,10 +593,6 @@ subroutine cloud_mp_uni(nCol, nLev, nTracers, ncnd, i_cldliq, i_cldice, i_cldrai
585593
endif
586594

587595
! Cloud water path (g/m2)
588-
cld_lwp(:,:) = 0.0
589-
cld_iwp(:,:) = 0.0
590-
cld_rwp(:,:) = 0.0
591-
cld_swp(:,:) = 0.0
592596
tem1 = 1.0e5/con_g
593597
do iLay = 1, nLev
594598
do iCol = 1, nCol

0 commit comments

Comments
 (0)