@@ -53,16 +53,6 @@ module rrtmgp_inputs_cam
5353! This value is to match the arbitrary small value used in RRTMG to decide
5454! when a quantity is effectively zero.
5555real (r8 ), parameter :: tiny = 1.0e-80_r8
56- real (r8 ) :: sw_low_bounds(nswbands)
57- real (r8 ) :: sw_high_bounds(nswbands)
58- integer :: ktopcam
59- integer :: ktoprad
60- integer :: idx_sw_diag
61- integer :: idx_nir_diag
62- integer :: idx_uv_diag
63- integer :: idx_sw_cloudsim
64- integer :: idx_lw_diag
65- integer :: idx_lw_cloudsim
6656
6757! Mapping from RRTMG shortwave bands to RRTMGP. Currently needed to continue using
6858! the SW optics datasets from RRTMG (even thought there is a slight mismatch in the
@@ -74,43 +64,6 @@ module rrtmgp_inputs_cam
7464contains
7565! ==================================================================================================
7666
77- ! ==================================================================================================
78- subroutine rrtmgp_inputs_cam_init (ktcam , ktrad , idx_sw_diag_in , idx_nir_diag_in , idx_uv_diag_in , &
79- idx_sw_cloudsim_in , idx_lw_diag_in , idx_lw_cloudsim_in )
80-
81- ! Note that this routine must be called after the calls to set_wavenumber_bands which set
82- ! the sw/lw band boundaries in the radconstants module.
83-
84- integer , intent (in ) :: ktcam
85- integer , intent (in ) :: ktrad
86- integer , intent (in ) :: idx_sw_diag_in
87- integer , intent (in ) :: idx_nir_diag_in
88- integer , intent (in ) :: idx_uv_diag_in
89- integer , intent (in ) :: idx_sw_cloudsim_in
90- integer , intent (in ) :: idx_lw_diag_in
91- integer , intent (in ) :: idx_lw_cloudsim_in
92- character (len= 512 ) :: errmsg
93- integer :: errflg
94-
95- ktopcam = ktcam
96- ktoprad = ktrad
97- idx_sw_diag = idx_sw_diag_in
98- idx_nir_diag = idx_nir_diag_in
99- idx_uv_diag = idx_uv_diag_in
100- idx_sw_cloudsim = idx_sw_cloudsim_in
101- idx_lw_diag = idx_lw_diag_in
102- idx_lw_cloudsim = idx_lw_cloudsim_in
103-
104- ! Initialize the module data containing the SW band boundaries.
105- call get_sw_spectral_boundaries_ccpp(sw_low_bounds, sw_high_bounds, ' cm^-1' , errmsg, errflg)
106- if (errflg /= 0 ) then
107- call endrun(' rrtmgp_inputs_cam_init: error during get_sw_spectral_boundaries_ccpp - message: ' // errmsg)
108- end if
109-
110- end subroutine rrtmgp_inputs_cam_init
111-
112- ! =========================================================================================
113-
11467subroutine rrtmgp_get_gas_mmrs (icall , state , pbuf , nlay , gas_mmrs )
11568
11669 ! Retrieve mass mixing ratios for radiatively active gases from rad_constituents
@@ -137,11 +90,13 @@ end subroutine rrtmgp_get_gas_mmrs
13790
13891! ==================================================================================================
13992
140- subroutine rrtmgp_set_aer_lw (icall , state , pbuf , aer_lw )
93+ subroutine rrtmgp_set_aer_lw (ktopcam , ktoprad , icall , state , pbuf , aer_lw )
14194
14295 ! Load LW aerosol optical properties into the RRTMGP object.
14396
14497 ! Arguments
98+ integer , intent (in ) :: ktopcam
99+ integer , intent (in ) :: ktoprad
145100 integer , intent (in ) :: icall
146101 type (physics_state), target , intent (in ) :: state
147102 type (physics_buffer_desc), pointer :: pbuf(:)
@@ -178,11 +133,13 @@ end subroutine rrtmgp_set_aer_lw
178133! ==================================================================================================
179134
180135subroutine rrtmgp_set_aer_sw ( &
181- icall , state , pbuf , nday , idxday , nnite , idxnite , aer_sw )
136+ ktopcam , ktoprad , icall , state , pbuf , nday , idxday , nnite , idxnite , aer_sw )
182137
183138 ! Load SW aerosol optical properties into the RRTMGP object.
184139
185140 ! Arguments
141+ integer , intent (in ) :: ktopcam
142+ integer , intent (in ) :: ktoprad
186143 integer , intent (in ) :: icall
187144 type (physics_state), target , intent (in ) :: state
188145 type (physics_buffer_desc), pointer :: pbuf(:)
0 commit comments