Thanks for the suggestion. From my understanding of the code I would implement the call to the module in the
radiation_tend subroutine? And for instance overwriting the colum mean CO2 concentration right after the
calc_col_mean routine for CO2 and/or for the solar constant
solin right before the
radcswmx routine is called!?
call
rad_cnst_get_clim_gas
call
calc_col_mean
! construct cgs unit reps of pmid and pint and get "eccf" - earthsundistancefactor
call
radinp
if (dosw) then
call t_startf('rad_sw')
! Get Oxygen mass mixing ratio.
call
rad_cnst_get_clim_gas
call
calc_col_mean
! Get aerosol radiative properties.
call t_startf('aero_optics_sw')
call
aer_rad_props_get_clim_sw
aer_tau, aer_tau_w, aer_tau_w_g, aer_tau_w_f)
call t_stopf('aero_optics_sw')
call
radcswmx
ncol, pnm, pbr, sp_hum, o3, &
o2_col, cld, cicewp, cliqwp, rel, &
rei, eccf, coszrs, solin, &
cam_in%asdir, cam_in%asdif, cam_in%aldir, cam_in%aldif, nmxrgn, &
pmxrgn, qrs, qrsc, fsnt, fsntc, fsdtoa, &
fsntoa, fsutoa, fsntoac, fsnirt, fsnrtc, fsnirtsq, &
fsns, fsnsc, fsdsc, fsds, cam_out%sols, &
cam_out%soll, cam_out%solsd, cam_out%solld, fns, fcns, &
Nday, Nnite, IdxDay, IdxNite, co2_col_mean, &
aer_tau, aer_tau_w, aer_tau_w_g, aer_tau_w_f )
call t_stopf('rad_sw')
From my understanding, even though
solin [W/m2] and
co2_col_mean [e.g. 3.550e-4] have global mean values, they are still defined for each grid point (pcols), thus allowing to be overwriiten in the
radiation_tend routine by a variable of the same dimension (e.g. from a netcd file)?