Loading [MathJax]/extensions/tex2jax.js
CCPP SciDoc for UFS-SRW v3.0.0  SRW v3.0.0
Common Community Physics Package Developed at DTC
 
All Classes Namespaces Functions Variables Modules Pages
Loading...
Searching...
No Matches

◆ gfs_rrtmgp_post_run()

subroutine, public gfs_rrtmgp_post::gfs_rrtmgp_post_run ( integer, intent(in) ncol,
integer, intent(in) nlev,
integer, intent(in) nday,
integer, intent(in) isfc,
integer, intent(in) itoa,
integer, dimension(:), intent(in) idxday,
logical, intent(in) dolwrad,
logical, intent(in) doswrad,
logical, intent(in) do_lw_clrsky_hr,
logical, intent(in) do_sw_clrsky_hr,
logical, intent(in) save_diag,
real(kind_phys), intent(in) fhlwr,
real(kind_phys), intent(in) fhswr,
real(kind_phys), dimension(:), intent(in) sfc_alb_nir_dir,
real(kind_phys), dimension(:), intent(in) sfc_alb_nir_dif,
real(kind_phys), dimension(:), intent(in) sfc_alb_uvvis_dir,
real(kind_phys), dimension(:), intent(in) sfc_alb_uvvis_dif,
real(kind_phys), dimension(:,:), intent(in), optional p_lev,
real(kind_phys), dimension(:), intent(in) tsfa,
real(kind_phys), dimension(:), intent(in) coszen,
real(kind_phys), dimension(:), intent(in) coszdg,
real(kind_phys), dimension(:,:), intent(in), optional fluxlwdown_clrsky,
real(kind_phys), dimension(:,:), intent(in), optional fluxlwup_allsky,
real(kind_phys), dimension(:,:), intent(in), optional fluxlwdown_allsky,
real(kind_phys), dimension(:,:), intent(in), optional fluxlwup_clrsky,
real(kind_phys), dimension(:,:), intent(in), optional fluxswdown_clrsky,
real(kind_phys), dimension(:,:), intent(in), optional fluxswup_allsky,
real(kind_phys), dimension(:,:), intent(in), optional fluxswdown_allsky,
real(kind_phys), dimension(:,:), intent(in), optional fluxswup_clrsky,
real(kind_phys), intent(in) raddt,
real(kind_phys), dimension(:,:), intent(in) aerodp,
real(kind_phys), dimension(:,:), intent(in) cldsa,
integer, dimension(:,:), intent(in) mtopa,
integer, dimension(:,:), intent(in) mbota,
real(kind_phys), dimension(:,:), intent(in) cld_frac,
real(kind_phys), dimension(:,:), intent(in) cldtaulw,
real(kind_phys), dimension(:,:), intent(in) cldtausw,
type(cmpfsw_type), dimension(:), intent(in) scmpsw,
real(kind=kind_phys), dimension(:,:), intent(inout) fluxr,
real(kind_phys), dimension(:), intent(inout) sfcdlw,
real(kind_phys), dimension(:), intent(inout) sfculw,
type(sfcflw_type), dimension(:), intent(inout) sfcflw,
real(kind_phys), dimension(:), intent(inout) tsflw,
real(kind_phys), dimension(:,:), intent(inout) htrlw,
real(kind_phys), dimension(:,:), intent(inout), optional htrlwu,
type(topflw_type), dimension(:), intent(inout) topflw,
real(kind_phys), dimension(:), intent(inout) nirbmdi,
real(kind_phys), dimension(:), intent(inout) nirdfdi,
real(kind_phys), dimension(:), intent(inout) visbmdi,
real(kind_phys), dimension(:), intent(inout) visdfdi,
real(kind_phys), dimension(:), intent(inout) nirbmui,
real(kind_phys), dimension(:), intent(inout) nirdfui,
real(kind_phys), dimension(:), intent(inout) visbmui,
real(kind_phys), dimension(:), intent(inout) visdfui,
real(kind_phys), dimension(:), intent(inout) sfcnsw,
real(kind_phys), dimension(:), intent(inout) sfcdsw,
real(kind_phys), dimension(:,:), intent(inout) htrsw,
type(sfcfsw_type), dimension(:), intent(inout) sfcfsw,
type(topfsw_type), dimension(:), intent(inout) topfsw,
real(kind_phys), dimension(:,:), intent(inout), optional htrswc,
real(kind_phys), dimension(:,:), intent(inout), optional htrlwc,
character(len=*), intent(out) errmsg,
integer, intent(out) errflg )

Argument Table

GFS_rrtmgp_post_run argument table
local_namestandard_namelong_nameunitstypedimensionskindintent
nColhorizontal_loop_extenthorizontal loop extentcountinteger()in
nLevvertical_layer_dimensionnumber of vertical levelscountinteger()in
iSFCvertical_index_for_surface_in_rrtmgpindex for surface layer in RRTMGPflaginteger()in
iTOAvertical_index_for_toa_in_rrtmgpindex for TOA layer in RRTMGPflaginteger()in
ndaydaytime_points_dimensiondaytime points dimensioncountinteger()in
idxdaydaytime_pointsdaytime pointsindexinteger(ccpp_constant_one:horizontal_loop_extent)in
doSWradflag_for_calling_shortwave_radiationlogical flags for sw radiation callsflaglogical()in
do_sw_clrsky_hrflag_for_output_of_tendency_of_air_temperature_due_to_shortwave_heating_on_radiation_timestep_assuming_clear_skyflag to output sw heating rateflaglogical()in
doLWradflag_for_calling_longwave_radiationlogical flags for lw radiation callsflaglogical()in
do_lw_clrsky_hrflag_for_output_of_tendency_of_air_temperature_due_to_longwave_heating_on_radiation_timestep_assuming_clear_skyflag to output lw heating rateflaglogical()in
save_diagflag_for_diagnosticslogical flag for storing diagnosticsflaglogical()in
fhlwrperiod_of_longwave_radiation_callsfrequency for longwave radiationsreal()kind_physin
fhswrperiod_of_shortwave_radiation_callsfrequency for shortwave radiationsreal()kind_physin
coszencosine_of_solar_zenith_angle_for_daytime_points_on_radiation_timestepmean cos of zenith angle over rad call periodnonereal(ccpp_constant_one:horizontal_loop_extent)kind_physin
coszdgcosine_of_solar_zenith_angle_on_radiation_timestepdaytime mean cosz over rad call periodnonereal(ccpp_constant_one:horizontal_loop_extent)kind_physin
sfc_alb_nir_dirsurface_albedo_due_to_near_ir_directsurface albedo due to near IR direct beamfracreal(ccpp_constant_one:horizontal_loop_extent)kind_physin
sfc_alb_nir_difsurface_albedo_due_to_near_ir_diffusedsurface albedo due to near IR diffused beamfracreal(ccpp_constant_one:horizontal_loop_extent)kind_physin
sfc_alb_uvvis_dirsurface_albedo_due_to_uv_and_vis_directsurface albedo due to UV+VIS direct beamfracreal(ccpp_constant_one:horizontal_loop_extent)kind_physin
sfc_alb_uvvis_difsurface_albedo_due_to_uv_and_vis_diffusedsurface albedo due to UV+VIS diffused beamfracreal(ccpp_constant_one:horizontal_loop_extent)kind_physin
tsfasurface_air_temperature_for_radiationlowest model layer air temperature for radiationKreal(ccpp_constant_one:horizontal_loop_extent)kind_physin
p_levair_pressure_at_interface_for_rrtmgpair pressure levelPareal(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_interface_dimension)kind_physin
fluxlwUP_allskyrrtmgp_lw_flux_profile_upward_allskyRRTMGP upward longwave all-sky flux profileW m-2real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_interface_dimension)kind_physin
fluxlwDOWN_allskyrrtmgp_lw_flux_profile_downward_allskyRRTMGP downward longwave all-sky flux profileW m-2real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_interface_dimension)kind_physin
fluxlwUP_clrskyrrtmgp_lw_flux_profile_upward_clrskyRRTMGP upward longwave clr-sky flux profileW m-2real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_interface_dimension)kind_physin
fluxlwDOWN_clrskyrrtmgp_lw_flux_profile_downward_clrskyRRTMGP downward longwave clr-sky flux profileW m-2real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_interface_dimension)kind_physin
fluxswUP_allskyrrtmgp_sw_flux_profile_upward_allskyRRTMGP upward shortwave all-sky flux profileW m-2real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_interface_dimension)kind_physin
fluxswDOWN_allskyrrtmgp_sw_flux_profile_downward_allskyRRTMGP downward shortwave all-sky flux profileW m-2real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_interface_dimension)kind_physin
fluxswUP_clrskyrrtmgp_sw_flux_profile_upward_clrskyRRTMGP upward shortwave clr-sky flux profileW m-2real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_interface_dimension)kind_physin
fluxswDOWN_clrskyrrtmgp_sw_flux_profile_downward_clrskyRRTMGP downward shortwave clr-sky flux profileW m-2real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_interface_dimension)kind_physin
raddttime_step_for_radiationradiation time stepsreal()kind_physin
aerodpatmosphere_optical_thickness_due_to_ambient_aerosol_particlesvertical integrated optical depth for various aerosol speciesnonereal(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:number_of_species_for_aerosol_optical_depth)kind_physin
cldsacloud_area_fraction_for_radiationfraction of clouds for low, middle, high, total and BLfracreal(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:5)kind_physin
mtopamodel_layer_number_at_cloud_topvertical indices for low, middle and high cloud topsindexinteger(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:3)in
mbotamodel_layer_number_at_cloud_basevertical indices for low, middle and high cloud basesindexinteger(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:3)in
cld_fractotal_cloud_fractionlayer total cloud fractionfracreal(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_layer_dimension)kind_physin
cldtaulwcloud_optical_depth_layers_at_10mu_bandapprox 10mu band layer cloud optical depthnonereal(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_layer_dimension)kind_physin
cldtauswcloud_optical_depth_layers_at_0p55mu_bandapprox .55mu band layer cloud optical depthnonereal(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_layer_dimension)kind_physin
scmpswcomponents_of_surface_downward_shortwave_fluxesderived type for special components of surface downward shortwave fluxesW m-2cmpfsw_type(ccpp_constant_one:horizontal_loop_extent)cmpfsw_typein
fluxrcumulative_radiation_diagnostictime-accumulated 2D radiation-related diagnostic fieldsmixedreal(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:number_of_diagnostics_variables_for_radiation)kind_physinout
sfcdlwsurface_downwelling_longwave_flux_on_radiation_timesteptotal sky sfc downward lw fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
sfculwsurface_upwelling_longwave_flux_on_radiation_timesteptotal sky sfc upward lw fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
sfcflwsurface_lw_fluxes_assuming_total_and_clear_sky_on_radiation_timesteplw radiation fluxes at sfcW m-2sfcflw_type(ccpp_constant_one:horizontal_loop_extent)sfcflw_typeinout
tsflwair_temperature_at_surface_adjacent_layer_on_radiation_timestepsurface air temp during lw calculationKreal(ccpp_constant_one:horizontal_loop_extent)kind_physinout
htrlwtendency_of_air_temperature_due_to_longwave_heating_on_radiation_timesteptotal sky lw heating rateK s-1real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_layer_dimension)kind_physinout
htrlwuupdated_tendency_of_air_temperature_due_to_longwave_heating_on_physics_timesteptotal sky longwave heating rate on physics time stepK s-1real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_layer_dimension)kind_physinout
topflwlw_fluxes_top_atmospherelw radiation fluxes at topW m-2topflw_type(ccpp_constant_one:horizontal_loop_extent)topflw_typeinout
nirbmdisurface_downwelling_direct_nir_shortwave_flux_on_radiation_timestepsfc nir beam sw downward fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
nirdfdisurface_downwelling_diffuse_nir_shortwave_flux_on_radiation_timestepsfc nir diff sw downward fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
visbmdisurface_downwelling_direct_uv_and_vis_shortwave_flux_on_radiation_timestepsfc uv+vis beam sw downward fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
visdfdisurface_downwelling_diffuse_uv_and_vis_shortwave_flux_on_radiation_timestepsfc uv+vis diff sw downward fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
nirbmuisurface_upwelling_direct_nir_shortwave_flux_on_radiation_timestepsfc nir beam sw upward fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
nirdfuisurface_upwelling_diffuse_nir_shortwave_flux_on_radiation_timestepsfc nir diff sw upward fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
visbmuisurface_upwelling_direct_uv_and_vis_shortwave_flux_on_radiation_timestepsfc uv+vis beam sw upward fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
visdfuisurface_upwelling_diffuse_uv_and_vis_shortwave_flux_on_radiation_timestepsfc uv+vis diff sw upward fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
sfcnswsurface_net_downwelling_shortwave_flux_on_radiation_timesteptotal sky sfc netsw flx into groundW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
sfcdswsurface_downwelling_shortwave_flux_on_radiation_timesteptotal sky sfc downward sw fluxW m-2real(ccpp_constant_one:horizontal_loop_extent)kind_physinout
htrswtendency_of_air_temperature_due_to_shortwave_heating_on_radiation_timesteptotal sky sw heating rateK s-1real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_layer_dimension)kind_physinout
sfcfswsurface_sw_fluxes_assuming_total_and_clear_sky_on_radiation_timestepsw radiation fluxes at sfcW m-2sfcfsw_type(ccpp_constant_one:horizontal_loop_extent)sfcfsw_typeinout
topfswsw_fluxes_top_atmospheresw radiation fluxes at toaW m-2topfsw_type(ccpp_constant_one:horizontal_loop_extent)topfsw_typeinout
htrswctendency_of_air_temperature_due_to_shortwave_heating_assuming_clear_sky_on_radiation_timestepclear sky sw heating ratesK s-1real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:vertical_layer_dimension)kind_physinout
htrlwctendency_of_air_temperature_due_to_longwave_heating_assuming_clear_sky_on_radiation_timesteplongwave clear sky heating rateK s-1real(ccpp_constant_one:horizontal_loop_extent, ccpp_constant_one:adjusted_vertical_layer_dimension_for_radiation)kind_physinout
errmsgccpp_error_messageerror message for error handling in CCPPnonecharacter()len=*out
errflgccpp_error_codeerror code for error handling in CCPP1integer()out

The all-sky radiation tendency is computed, the clear-sky tendency is computed if requested.

RRTMGP surface and TOA fluxes are copied to fields that persist between radiation/physics calls.

(optional) Save additional diagnostics.

Parameters
[in]itoaVertical index for TOA level
[in]idxdayIndex array for daytime points
[in]mtopaertical indices for low, middle and high cloud bases
[in]save_diagOutput radiation diagnostics?
[in]fhswrFrequency for SW radiation calls
[in]sfc_alb_uvvis_difSurface albedo (diffuse)
[in]fluxswdown_clrskyRRTMGP shortwave clear-sky flux (W/m2)
[in]raddtRadiation time step
[in]cldtauswapprox .55mu band layer cloud optical depth
[in]scmpsw2D surface fluxes, components:
[in,out]sfcdswSW sfc all-sky downward flux (W/m2)
[in,out]htrswSW all-sky heating rate (K/s)
[in,out]htrlwuLW all-sky heating-rate updated in-between radiation calls.
[in,out]sfcflwLW radiation fluxes at sfc
[in,out]sfcfswSW radiation fluxes at sfc
[in,out]topfswSW fluxes at top atmosphere
[in,out]topflwLW fluxes at top atmosphere
[out]errmsgCCPP error message
[out]errflgCCPP error code
[in,out]htrswcSW clear-sky heating rate (K/s)
Parameters
ncolHorizontal loop extent
nlevNumber of vertical layers
ndayNumber of daylit columns
isfcVertical index for surface level
dolwradLogical flags for lw radiation calls
doswradLogical flags for sw radiation calls
do_lw_clrsky_hrOutput clear-sky LW heating-rate?
do_sw_clrsky_hrOutput clear-sky SW heating-rate?
fhlwrFrequency for LW radiation calls
sfc_alb_nir_dirSurface albedo (direct)
sfc_alb_nir_difSurface albedo (diffuse)
sfc_alb_uvvis_dirSurface albedo (direct)
p_levPressure @ model layer-interfaces (Pa)
tsfaLowest model layer air temperature for radiation (K)
coszenCosine(SZA)
coszdgCosine(SZA), daytime
fluxlwdown_clrskyRRTMGP longwave clear-sky flux (W/m2)
fluxlwup_allskyRRTMGP longwave all-sky flux (W/m2)
fluxlwdown_allskyRRTMGP longwave all-sky flux (W/m2)
fluxlwup_clrskyRRTMGP longwave clear-sky flux (W/m2)
fluxswup_allskyRRTMGP shortwave all-sky flux (W/m2)
fluxswdown_allskyRRTMGP shortwave all-sky flux (W/m2)
fluxswup_clrskyRRTMGP shortwave clear-sky flux (W/m2)
aerodpVertical integrated optical depth for various aerosol species
cldsaFraction of clouds for low, middle, high, total and BL
mbotaVertical indices for low, middle and high cloud tops
cld_fracTotal cloud fraction in each layer
cldtaulwapprox 10.mu band layer cloud optical depth
sfcdlwLW sfc all-sky downward flux (W/m2)
sfculwLW sfc all-sky upward flux (W/m2)
tsflwLW sfc air temp during calculation (K)
htrlwLW all-sky heating rate (K/s)
nirbmdiSW sfc nir beam downward flux (W/m2)
nirdfdiSW sfc nir diff downward flux (W/m2)
visbmdiSW sfc uv+vis beam downward flux (W/m2)
visdfdiSW sfc uv+vis diff downward flux (W/m2)
nirbmuiSW sfc nir beam upward flux (W/m2)
nirdfuiSW sfc nir diff upward flux (W/m2)
visbmuiSW sfc uv+vis beam upward flux (W/m2)
visdfuiSW sfc uv+vis diff upward flux (W/m2)
sfcnswSW sfc all-sky net flux (W/m2) flux into ground
htrlwcLW clear-sky heating-rate (K/s)