Skip to content

Commit 8964803

Browse files
committed
always update netsw variable to be sent to coupler
1 parent 59099e4 commit 8964803

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/physics/rrtmgp/radiation.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,8 @@ subroutine radiation_tend( &
14201420
qrs(:ncol,:) = qrs(:ncol,:) * state%pdel(:ncol,:)
14211421
qrl(:ncol,:) = qrl(:ncol,:) * state%pdel(:ncol,:)
14221422

1423+
cam_out%netsw(:ncol) = fsns(:ncol)
1424+
14231425
if (.not. present(rd_out)) then
14241426
deallocate(rd)
14251427
end if
@@ -1496,8 +1498,6 @@ subroutine set_sw_diags()
14961498
rd%fsnsc(:ncol) = fcns(:ncol,pverp) ! net sw clearsky flux at surface
14971499
rd%fsntc(:ncol) = fcns(:ncol,ktopcam) ! net sw clearsky flux at top
14981500

1499-
cam_out%netsw(:ncol) = fsns(:ncol)
1500-
15011501
! Output fluxes at 200 mb
15021502
call vertinterp(ncol, pcols, pverp, state%pint, 20000._r8, fns, rd%fsn200)
15031503
call vertinterp(ncol, pcols, pverp, state%pint, 20000._r8, fcns, rd%fsn200c)

0 commit comments

Comments
 (0)