Skip to content

Commit

Permalink
cleanup a couple of unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-eaton committed Aug 24, 2023
1 parent 19b9083 commit 6b36f66
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/physics/rrtmgp/radiation.F90
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ module radiation

! LW coefficients
type(ty_gas_optics_rrtmgp) :: kdist_lw ! bpm changed here
integer :: ngpt_lw

! SW coefficients
type(ty_gas_optics_rrtmgp) :: kdist_sw ! bpm changed here
Expand Down Expand Up @@ -570,7 +569,6 @@ subroutine radiation_init(pbuf2d)
call rad_data_init(pbuf2d) ! initialize output fields for offline driver
call cloud_rad_props_init()

ngpt_lw = kdist_lw%get_ngpt() ! these set global values
ngpt_sw = kdist_sw%get_ngpt()

! bpm: set the indices used for diagnostics using specific band:
Expand Down Expand Up @@ -1114,21 +1112,19 @@ subroutine radiation_tend( &
logical :: conserve_energy = .false. ! Flag to carry (QRS,QRL)*dp across time steps.

integer :: iband
integer :: nlevcam, nlevrad
real(r8) :: mem_hw_end, mem_hw_beg, mem_end, mem_beg, temp

!--------------------------------------------------------------------------------------

lchnk = state%lchnk
ncol = state%ncol
nlevcam = size(state%t,2) ! number of levels in CAM grid

if (present(rd_out)) then
rd => rd_out
write_output = .false.
else
allocate(rd)
! allocate some elements of rd
! allocate elements of rd for output of fluxes on RRTMGP grid
if (.not. allocated(rd%fsdn)) then
allocate(rd%fsdn(pcols,nlay+1), rd%fsdnc(pcols,nlay+1), rd%fsup(pcols,nlay+1), rd%fsupc(pcols,nlay+1), &
rd%fldn(pcols,nlay+1), rd%fldnc(pcols,nlay+1), rd%flup(pcols,nlay+1), rd%flupc(pcols,nlay+1) )
Expand Down Expand Up @@ -1289,7 +1285,6 @@ subroutine radiation_tend( &
alb_dif, & ! output
tsi & ! output, total solar irradiance (not scaled)
)
nlevrad = size(t_rad,2)

!!--> Set TSI used in radiation to the value in the solar forcing file.
!!--> This replaces get_variability() and does same thing.
Expand Down

0 comments on commit 6b36f66

Please sign in to comment.