@@ -186,6 +186,7 @@ subroutine GFS_radiation_post_run(doLWrad, doSWrad, tend_opt_lwrad, tend_opt_swr
186186 integer :: i, k, n
187187 real (rte_wp), dimension (nDay, nLev) :: thetaTendClrSkySW, thetaTendAllSkySW
188188 real (rte_wp), dimension (nCol, nLev) :: thetaTendClrSkyLW, thetaTendAllSkyLW
189+ real (kind_phys), dimension (nCol, nLev) :: save_t
189190
190191 ! Initialize CCPP error handling variables
191192 errmsg = ' '
@@ -245,7 +246,8 @@ subroutine GFS_radiation_post_run(doLWrad, doSWrad, tend_opt_lwrad, tend_opt_swr
245246 ! htrlw is calculated in rrtmg_lw_post if using RRTMG and above if using RRTMGP
246247 ten_t = htrlw
247248
248- ! remove tendency code from rrtmg_sw_post and rrtmg_lw_post
249+ ! save temperature to give to GFS_radiation_diagnostics
250+ save_t = gt0
249251
250252 ! This may belong in a separate GFS_radsw_post routine rather than here, although it would need to be created
251253 case_LWRAD_ten: select case (tend_opt_lwrad)
@@ -393,7 +395,7 @@ subroutine GFS_radiation_post_run(doLWrad, doSWrad, tend_opt_lwrad, tend_opt_swr
393395 ! #########################################################################################
394396 if (lssav) then
395397 call GFS_radiation_diagnostics(doLWrad, doSWrad, fhlwr, fhswr, coszen, coszdg, raddt, &
396- aerodp, cldsa, mtopa, mbota, cldtausw, cldtaulw, p_lev, gt0 , kb, kd, kt, sfcflw, &
398+ aerodp, cldsa, mtopa, mbota, cldtausw, cldtaulw, p_lev, save_t , kb, kd, kt, sfcflw, &
397399 sfcfsw, topfsw, topflw, scmpsw, nCol, nDay, nLev, lmk, nfxr, nspc1, fluxr)
398400 endif
399401
0 commit comments