diff --git a/.gitmodules b/.gitmodules index 2fdeca40a..5dfbeef23 100644 --- a/.gitmodules +++ b/.gitmodules @@ -8,5 +8,5 @@ branch = dtc/develop [submodule "ccpp/physics"] path = ccpp/physics - url = https://github.com/NCAR/ccpp-physics - branch = dtc/develop + url = https://github.com/dustinswales/ccpp-physics + branch = rrtmgp-dev diff --git a/ccpp/config/ccpp_prebuild_config.py b/ccpp/config/ccpp_prebuild_config.py index 54b49d726..722f1ba74 100755 --- a/ccpp/config/ccpp_prebuild_config.py +++ b/ccpp/config/ccpp_prebuild_config.py @@ -18,6 +18,11 @@ 'FV3/gfsphysics/CCPP_layer/CCPP_typedefs.F90', 'FV3/gfsphysics/GFS_layer/GFS_typedefs.F90', 'FV3/gfsphysics/CCPP_layer/CCPP_data.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rrtmgp/mo_gas_optics_rrtmgp.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rrtmgp/mo_gas_concentrations.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/mo_optical_props.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/extensions/cloud_optics/mo_cloud_optics.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/mo_source_functions.F90' ] TYPEDEFS_NEW_METADATA = { @@ -56,6 +61,27 @@ 'GFS_stateout_type' : 'GFS_Data(cdata%blk_no)%Stateout', 'GFS_typedefs' : '', }, + 'mo_gas_concentrations' : { + 'ty_gas_concs' : '', + 'mo_gas_concentrations' : '', + }, + 'mo_gas_optics_rrtmgp' : { + 'ty_gas_optics_rrtmgp' : '', + 'mo_gas_optics_rrtmgp' : '', + }, + 'mo_optical_props' : { + 'ty_optical_props_1scl' : '', + 'ty_optical_props_2str' : '', + 'mo_optical_props' : '', + }, + 'mo_cloud_optics' : { + 'ty_cloud_optics' : '', + 'mo_cloud_optics' : '', + }, + 'mo_source_functions' : { + 'ty_source_func_lw' : '', + 'mo_source_functions' : '', + }, } # Add all physics scheme dependencies relative to basedir - note that the CCPP @@ -147,6 +173,32 @@ # derived data type definitions 'FV3/gfsphysics/GFS_layer/GFS_typedefs.F90', 'FV3/gfsphysics/CCPP_layer/CCPP_typedefs.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rrtmgp/mo_gas_concentrations.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rrtmgp/mo_gas_optics.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rrtmgp/mo_gas_optics_rrtmgp.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rrtmgp/mo_rrtmgp_constants.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rrtmgp/mo_rrtmgp_util_reorder.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rrtmgp/mo_rrtmgp_util_string.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rrtmgp/kernels/mo_gas_optics_kernels.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rrtmgp/kernels/mo_rrtmgp_util_reorder_kernels.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/mo_fluxes.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/mo_rte_util_array.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/mo_optical_props.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/mo_rte_kind.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/mo_rte_lw.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/mo_rte_sw.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/mo_source_functions.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/kernels/mo_fluxes_broadband_kernels.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/kernels/mo_optical_props_kernels.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/rte/kernels/mo_rte_solver_kernels.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/extensions/mo_compute_bc.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/extensions/mo_fluxes_byband.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/extensions/mo_fluxes_byband_kernels.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/extensions/mo_fluxes_bygpoint.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/extensions/mo_heating_rates.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/extensions/mo_rrtmgp_clr_all_sky.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/extensions/cloud_optics/mo_cloud_optics.F90', + 'FV3/ccpp/physics/physics/rte-rrtmgp/extensions/cloud_optics/mo_cloud_sampling.F90' ] # Add all physics scheme files relative to basedir @@ -239,6 +291,26 @@ 'FV3/ccpp/physics/physics/mp_fer_hires.F90' : [ 'slow_physics' ], # for testing the and sections 'FV3/ccpp/physics/physics/GFS_suite_init_finalize_test.F90' : [ 'slow_physics' ], + # RRTMGP + 'FV3/ccpp/physics/physics/rrtmg_lw_cloud_optics.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmg_sw_cloud_optics.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_aux.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_lw_gas_optics.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_lw_cloud_optics.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_sw_gas_optics.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_sw_cloud_optics.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_sw_aerosol_optics.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_lw_rte.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_lw_cloud_sampling.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_sw_rte.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_sw_cloud_sampling.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_lw_aerosol_optics.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/GFS_rrtmgp_setup.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/GFS_rrtmgp_pre.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/rrtmgp_lw_pre.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/GFS_rrtmgp_sw_pre.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/GFS_rrtmgp_lw_post.F90' : ['slow_physics'], + 'FV3/ccpp/physics/physics/GFS_rrtmgp_sw_post.F90' : ['slow_physics'], } # Default build dir, relative to current working directory, @@ -274,6 +346,41 @@ # if no entry is made here. Possible values are: 'all', 'none', # or a list of standard_names: [ 'var1', 'var3' ]. OPTIONAL_ARGUMENTS = { + 'rrtmgp_sw_rte' : { + 'rrtmgp_sw_rte_run' : [ + 'tendency_of_air_temperature_due_to_shortwave_heating_assuming_clear_sky_on_radiation_time_step', + 'components_of_surface_downward_shortwave_fluxes', + 'sw_fluxes_sfc', + 'sw_fluxes_toa', + ], + }, + 'GFS_rrtmgp_sw_post' : { + 'GFS_rrtmgp_sw_post_run' : [ + 'tendency_of_air_temperature_due_to_shortwave_heating_assuming_clear_sky_on_radiation_time_step', + 'components_of_surface_downward_shortwave_fluxes', + 'sw_fluxes_sfc', + 'sw_fluxes_toa', + ], + }, + 'rrtmgp_lw_rte' : { + 'rrtmgp_lw_rte_run' : [ + 'tendency_of_air_temperature_due_to_longwave_heating_assuming_clear_sky_on_radiation_time_step', + 'lw_fluxes_sfc', + 'lw_fluxes_toa', + ], + }, + 'GFS_rrtmgp_lw_post' : { + 'GFS_rrtmgp_lw_post_run' : [ + 'tendency_of_air_temperature_due_to_longwave_heating_assuming_clear_sky_on_radiation_time_step', + 'lw_fluxes_sfc', + 'lw_fluxes_toa', + ], + }, + 'GFS_rrtmgp_post' : { + 'GFS_rrtmgp_post_run' : [ + 'components_of_surface_downward_shortwave_fluxes', + ], + }, 'rrtmg_sw' : { 'rrtmg_sw_run' : [ 'tendency_of_air_temperature_due_to_shortwave_heating_assuming_clear_sky_on_radiation_time_step', diff --git a/ccpp/physics b/ccpp/physics index 73f9f0958..107b22d29 160000 --- a/ccpp/physics +++ b/ccpp/physics @@ -1 +1 @@ -Subproject commit 73f9f0958796a1b06bef445c4e88691b364b850c +Subproject commit 107b22d297a203dbf24e7f161b24d5a180ff9f3b diff --git a/ccpp/suites/suite_FV3_GFS_2017_RRTMGP.xml b/ccpp/suites/suite_FV3_GFS_2017_RRTMGP.xml new file mode 100644 index 000000000..677386225 --- /dev/null +++ b/ccpp/suites/suite_FV3_GFS_2017_RRTMGP.xml @@ -0,0 +1,96 @@ + + + + + + + GFS_time_vary_pre + GFS_rrtmgp_setup + GFS_rad_time_vary + GFS_phys_time_vary + + + + + GFS_suite_interstitial_rad_reset + GFS_rrtmgp_pre + GFS_rrtmgp_sw_pre + rrtmgp_sw_gas_optics + rrtmgp_sw_aerosol_optics + rrtmgp_sw_cloud_optics + rrtmgp_sw_cloud_sampling + rrtmgp_sw_rte + GFS_rrtmgp_sw_post + rrtmgp_lw_pre + rrtmgp_lw_gas_optics + rrtmgp_lw_aerosol_optics + rrtmgp_lw_cloud_optics + rrtmgp_lw_cloud_sampling + rrtmgp_lw_rte + GFS_rrtmgp_lw_post + + + + + GFS_suite_interstitial_phys_reset + GFS_suite_stateout_reset + get_prs_fv3 + GFS_suite_interstitial_1 + GFS_surface_generic_pre + GFS_surface_composites_pre + dcyc2t3 + GFS_surface_composites_inter + GFS_suite_interstitial_2 + + + + sfc_diff + GFS_surface_loop_control_part1 + sfc_nst_pre + sfc_nst + sfc_nst_post + lsm_noah + sfc_sice + GFS_surface_loop_control_part2 + + + + GFS_surface_composites_post + dcyc2t3_post + sfc_diag + sfc_diag_post + GFS_surface_generic_post + GFS_PBL_generic_pre + hedmf + GFS_PBL_generic_post + GFS_GWD_generic_pre + cires_ugwp + cires_ugwp_post + GFS_GWD_generic_post + rayleigh_damp + GFS_suite_stateout_update + ozphys + GFS_DCNV_generic_pre + get_phi_fv3 + GFS_suite_interstitial_3 + samfdeepcnv + GFS_DCNV_generic_post + GFS_SCNV_generic_pre + samfshalcnv + GFS_SCNV_generic_post + GFS_suite_interstitial_4 + cnvc90 + GFS_MP_generic_pre + zhaocarr_gscond + zhaocarr_precpd + GFS_MP_generic_post + maximum_hourly_diagnostics + + + + + GFS_stochastics + + + + diff --git a/gfsphysics/GFS_layer/GFS_typedefs.F90 b/gfsphysics/GFS_layer/GFS_typedefs.F90 index 09ab1da2d..d5a0183bf 100644 --- a/gfsphysics/GFS_layer/GFS_typedefs.F90 +++ b/gfsphysics/GFS_layer/GFS_typedefs.F90 @@ -9,8 +9,14 @@ module GFS_typedefs con_t0c, con_cvap, con_cliq, con_eps, con_epsq, & con_epsm1, con_ttp, rlapse, con_jcal, con_rhw0, & con_sbc, con_tice, cimin, con_p0, rhowater - use module_radsw_parameters, only: topfsw_type, sfcfsw_type, cmpfsw_type, NBDSW - use module_radlw_parameters, only: topflw_type, sfcflw_type, NBDLW + + use module_radsw_parameters, only: topfsw_type, sfcfsw_type, profsw_type, cmpfsw_type, NBDSW + use module_radlw_parameters, only: topflw_type, sfcflw_type, proflw_type, NBDLW + use mo_gas_optics_rrtmgp, only: ty_gas_optics_rrtmgp + use mo_optical_props, only: ty_optical_props_1scl,ty_optical_props_2str + use mo_cloud_optics, only: ty_cloud_optics + use mo_gas_concentrations, only: ty_gas_concs + use mo_source_functions, only: ty_source_func_lw #else use physcons, only: rhowater use module_radsw_parameters, only: topfsw_type, sfcfsw_type @@ -648,7 +654,29 @@ module GFS_typedefs logical :: norad_precip !< radiation precip flag for Ferrier/Moorthi logical :: lwhtr !< flag to output lw heating rate (Radtend%lwhc) logical :: swhtr !< flag to output sw heating rate (Radtend%swhc) - +#ifdef CCPP + ! RRTMGP + logical :: doRRTMGP !< Use RRTMGP + character(len=128) :: active_gases !< Character list of active gases used in RRTMGP + integer :: nGases !< Number of active gases + character(len=128) :: rrtmgp_root !< Directory of rte+rrtmgp source code + character(len=128) :: lw_file_gas !< RRTMGP K-distribution file, coefficients to compute optics for gaseous atmosphere + character(len=128) :: lw_file_clouds !< RRTMGP file containing coefficients used to compute clouds optical properties + integer :: rrtmgp_nBandsLW !< Number of RRTMGP LW bands. + integer :: rrtmgp_nGptsLW !< Number of RRTMGP LW spectral points. + character(len=128) :: sw_file_gas !< RRTMGP K-distribution file, coefficients to compute optics for gaseous atmosphere + character(len=128) :: sw_file_clouds !< RRTMGP file containing coefficients used to compute clouds optical properties + integer :: rrtmgp_nBandsSW !< Number of RRTMGP SW bands. + integer :: rrtmgp_nGptsSW !< Number of RRTMGP SW spectral points. + integer :: rrtmgp_cld_optics !< Flag to control which RRTMGP routine to compute cloud-optics. + !< = 0 ; Use RRTMG implementation + !< = 1 ; Use RRTMGP (pade) + !< = 2 ; USE RRTMGP (LUT) + integer :: rrtmgp_nrghice !< Number of ice-roughness categories + integer :: rrtmgp_nGauss_ang !< Number of angles used in Gaussian quadrature + logical :: do_GPsw_Glw ! If set to true use rrtmgp for SW calculation, rrtmg for LW. + character(len=128) :: active_gases_array(100) !< character array for each trace gas name +#endif !--- microphysical switch integer :: ncld !< choice of cloud scheme !--- new microphysical switch @@ -1892,6 +1920,83 @@ module GFS_typedefs real (kind=kind_phys), pointer :: dudt_ogw(:,:) => null() !< daily aver u-wind tend due to orographic gravity wave drag real (kind=kind_phys), pointer :: dudt_tms(:,:) => null() !< daily aver u-wind tend due to TMS + ! RRTMGP +#ifdef CCPP + integer :: & + ipsdlw0, & ! + ipsdsw0 ! + real(kind_phys), pointer :: & + p_lay(:,:) => null(), & ! + p_lev(:,:) => null(), & ! + t_lev(:,:) => null(), & ! + t_lay(:,:) => null(), & ! + relhum(:,:) => null(), & ! + tv_lay(:,:) => null(), & ! + tracer(:,:,:) => null(), & ! + aerosolslw(:,:,:,:) => null(), & ! Aerosol radiative properties in each LW band. + aerosolssw(:,:,:,:) => null(), & ! Aerosol radiative properties in each SW band. + cld_frac(:,:) => null(), & ! Total cloud fraction + cld_lwp(:,:) => null(), & ! Cloud liquid water path + cld_reliq(:,:) => null(), & ! Cloud liquid effective radius + cld_iwp(:,:) => null(), & ! Cloud ice water path + cld_reice(:,:) => null(), & ! Cloud ice effecive radius + cld_swp(:,:) => null(), & ! Cloud snow water path + cld_resnow(:,:) => null(), & ! Cloud snow effective radius + cld_rwp(:,:) => null(), & ! Cloud rain water path + cld_rerain(:,:) => null(), & ! Cloud rain effective radius + hsw0(:,:) => null(), & ! RRTMGP shortwave heating-rate (clear-sky) + hswc(:,:) => null(), & ! RRTMGP shortwave heating-rate (all-sky) + hswb(:,:,:) => null(), & ! RRTMGP shortwave heating-rate (all-sky), by band + hlw0(:,:) => null(), & ! RRTMGP longwave heating-rate (clear-sky) + hlwc(:,:) => null(), & ! RRTMGP longwave heating-rate (all-sky) + hlwb(:,:,:) => null(), & ! RRTMGP longwave heating-rate (all-sky), by band + fluxlwUP_allsky(:,:) => null(), & ! RRTMGP upward longwave all-sky flux profile + fluxlwDOWN_allsky(:,:) => null(), & ! RRTMGP downward longwave all-sky flux profile + fluxlwUP_clrsky(:,:) => null(), & ! RRTMGP upward longwave clr-sky flux profile + fluxlwDOWN_clrsky(:,:) => null(), & ! RRTMGP downward longwave clr-sky flux profile + fluxswUP_allsky(:,:) => null(), & ! RRTMGP upward shortwave all-sky flux profile + fluxswDOWN_allsky(:,:) => null(), & ! RRTMGP downward shortwave all-sky flux profile + fluxswUP_clrsky(:,:) => null(), & ! RRTMGP upward shortwave clr-sky flux profile + fluxswDOWN_clrsky(:,:) => null(), & ! RRTMGP downward shortwave clr-sky flux profile + sfc_emiss_byband(:,:) => null(), & ! + sec_diff_byband(:,:) => null(), & ! + sfc_alb_nir_dir(:,:) => null(), & ! + sfc_alb_nir_dif(:,:) => null(), & ! + sfc_alb_uvvis_dir(:,:) => null(), & ! + sfc_alb_uvvis_dif(:,:) => null(), & ! + toa_src_lw(:,:) => null(), & ! + toa_src_sw(:,:) => null() ! + character(len=128), pointer :: & + active_gases_array(:) => null() ! Character array for each trace gas name + integer, pointer :: & + icseed_lw(:) => null(), & ! RRTMGP seed for RNG for longwave radiation + icseed_sw(:) => null() ! RRTMGP seed for RNG for shortwave radiation + type(proflw_type), pointer :: & + flxprf_lw(:,:) => null() ! DDT containing RRTMGP longwave fluxes + type(profsw_type), pointer :: & + flxprf_sw(:,:) => null() ! DDT containing RRTMGP shortwave fluxes + type(ty_gas_optics_rrtmgp) :: & + lw_gas_props, & ! RRTMGP DDT + sw_gas_props ! RRTMGP DDT + type(ty_cloud_optics) :: & + lw_cloud_props, & ! RRTMGP DDT + sw_cloud_props ! RRTMGP DDT + type(ty_optical_props_1scl) :: & + lw_optical_props_cloudsByBand, & ! RRTMGP DDT + lw_optical_props_clouds, & ! RRTMGP DDT + lw_optical_props_clrsky, & ! RRTMGP DDT + lw_optical_props_aerosol ! RRTMGP DDT + type(ty_optical_props_2str) :: & + sw_optical_props_cloudsByBand, & ! RRTMGP DDT + sw_optical_props_clouds, & ! RRTMGP DDT + sw_optical_props_clrsky, & ! RRTMGP DDT + sw_optical_props_aerosol ! RRTMGP DDT + type(ty_gas_concs) :: & + gas_concentrations ! RRTMGP DDT + type(ty_source_func_lw) :: & + sources ! RRTMGP DDT +#endif + !-- HWRF physics: dry mixing ratios real (kind=kind_phys), pointer :: qv_r(:,:) => null() !< real (kind=kind_phys), pointer :: qc_r(:,:) => null() !< @@ -2764,7 +2869,28 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, master, & logical :: norad_precip = .false. !< radiation precip flag for Ferrier/Moorthi logical :: lwhtr = .true. !< flag to output lw heating rate (Radtend%lwhc) logical :: swhtr = .true. !< flag to output sw heating rate (Radtend%swhc) - + ! RRTMGP +#ifdef CCPP + logical :: doRRTMGP = .false. !< Use RRTMGP? + character(len=128) :: active_gases = '' !< Character list of active gases used in RRTMGP + integer :: nGases = 0 !< Number of active gases + character(len=128) :: rrtmgp_root = '' !< Directory of rte+rrtmgp source code + character(len=128) :: lw_file_gas = '' !< RRTMGP K-distribution file, coefficients to compute optics for gaseous atmosphere + character(len=128) :: lw_file_clouds = '' !< RRTMGP file containing coefficients used to compute clouds optical properties + integer :: rrtmgp_nBandsLW = 16 !< Number of RRTMGP LW bands. + integer :: rrtmgp_nGptsLW = 256 !< Number of RRTMGP LW spectral points. + character(len=128) :: sw_file_gas = '' !< RRTMGP K-distribution file, coefficients to compute optics for gaseous atmosphere + character(len=128) :: sw_file_clouds = '' !< RRTMGP file containing coefficients used to compute clouds optical properties + integer :: rrtmgp_nBandsSW = 14 !< Number of RRTMGP SW bands. + integer :: rrtmgp_nGptsSW = 224 !< Number of RRTMGP SW spectral points. + integer :: rrtmgp_cld_optics = 0 !< Flag to control which RRTMGP routine to compute cloud-optics. + !< = 0 ; Use RRTMGP implementation + !< = 1 ; Use RRTMGP (pade) + !< = 2 ; USE RRTMGP (LUT) + integer :: rrtmgp_nrghice = 0 !< Number of ice-roughness categories + integer :: rrtmgp_nGauss_ang=1 !< Number of angles used in Gaussian quadrature + logical :: do_GPsw_Glw = .false. +#endif !--- Z-C microphysical parameters integer :: ncld = 1 !< choice of cloud scheme integer :: imp_physics = 99 !< choice of cloud scheme @@ -3097,6 +3223,14 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, master, & fhswr, fhlwr, levr, nfxr, aero_in, iflip, isol, ico2, ialb, & isot, iems, iaer, icliq_sw, iovr_sw, iovr_lw, ictm, isubc_sw,& isubc_lw, crick_proof, ccnorm, lwhtr, swhtr, & +#ifdef CCPP + ! --- RRTMGP + doRRTMGP, active_gases, nGases, rrtmgp_root, & + lw_file_gas, lw_file_clouds, rrtmgp_nBandsLW, rrtmgp_nGptsLW,& + sw_file_gas, sw_file_clouds, rrtmgp_nBandsSW, rrtmgp_nGptsSW,& + rrtmgp_cld_optics, rrtmgp_nrghice, rrtmgp_nGauss_ang, & + do_GPsw_Glw, & +#endif ! IN CCN forcing iccn, & !--- microphysical parameterizations @@ -3342,6 +3476,23 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, master, & Model%lwhtr = lwhtr Model%swhtr = swhtr #ifdef CCPP + Model%rrtmgp_nrghice = rrtmgp_nrghice + Model%rrtmgp_nGauss_ang = rrtmgp_nGauss_ang + Model%doRRTMGP = doRRTMGP + Model%do_GPsw_Glw = do_GPsw_Glw + Model%active_gases = active_gases + Model%ngases = nGases + Model%rrtmgp_root = rrtmgp_root + Model%lw_file_gas = lw_file_gas + Model%lw_file_clouds = lw_file_clouds + Model%rrtmgp_nBandsLW = rrtmgp_nBandsLW + Model%rrtmgp_nGptsLW = rrtmgp_nGptsLW + Model%sw_file_gas = sw_file_gas + Model%sw_file_clouds = sw_file_clouds + Model%rrtmgp_nBandsSW = rrtmgp_nBandsSW + Model%rrtmgp_nGptsSW = rrtmgp_nGptsSW + Model%rrtmgp_cld_optics = RRTMGP_CLD_OPTICS + ! The CCPP versions of the RRTMG lw/sw schemes are configured ! such that lw and sw heating rate are output, i.e. they rely ! on the corresponding arrays to be allocated. @@ -4435,6 +4586,25 @@ subroutine control_print(Model) print *, ' norad_precip : ', Model%norad_precip print *, ' lwhtr : ', Model%lwhtr print *, ' swhtr : ', Model%swhtr +#ifdef CCPP + if (Model%doRRTMGP) then + print *, ' rrtmgp_nrghice : ', Model%rrtmgp_nrghice + print *, ' rrtmgp_nrghice : ', Model%rrtmgp_nrghice + print *, ' do_GPsw_Glw : ', Model%do_GPsw_Glw + print *, ' active_gases : ', Model%active_gases + print *, ' nGases : ', Model%ngases + print *, ' rrtmgp_root : ', Model%rrtmgp_root + print *, ' lw_file_gas : ', Model%lw_file_gas + print *, ' lw_file_clouds : ', Model%lw_file_clouds + print *, ' rrtmgp_nBandsLW : ', Model%rrtmgp_nBandsLW + print *, ' rrtmgp_nGptsLW : ', Model%rrtmgp_nGptsLW + print *, ' sw_file_gas : ', Model%sw_file_gas + print *, ' sw_file_clouds : ', Model%sw_file_clouds + print *, ' rrtmgp_nBandsSW : ', Model%rrtmgp_nBandsSW + print *, ' rrtmgp_nGptsSW : ', Model%rrtmgp_nGptsSW + print *, ' rrtmgp_cld_optics : ', Model%rrtmgp_cld_optics + endif +#endif print *, ' ' print *, 'microphysical switch' print *, ' ncld : ', Model%ncld @@ -5015,7 +5185,6 @@ subroutine radtend_create (Radtend, IM, Model) allocate (Radtend%coszen (IM)) allocate (Radtend%tsflw (IM)) allocate (Radtend%semis (IM)) - Radtend%htrsw = clear_val Radtend%htrlw = clear_val Radtend%sfalb = clear_val @@ -5908,6 +6077,54 @@ subroutine interstitial_create (Interstitial, IM, Model) allocate (Interstitial%zorl_land (IM)) allocate (Interstitial%zorl_ocean (IM)) allocate (Interstitial%zt1d (IM)) + ! RRTMGP + if (Model%doRRTMGP) then + allocate (Interstitial%tracer (IM, Model%levs,Model%ntrac)) + allocate (Interstitial%tv_lay (IM, Model%levs)) + allocate (Interstitial%relhum (IM, Model%levs)) + allocate (Interstitial%p_lev (IM, Model%levs+1)) + allocate (Interstitial%p_lay (IM, Model%levs)) + allocate (Interstitial%t_lev (IM, Model%levs+1)) + allocate (Interstitial%t_lay (IM, Model%levs)) + allocate (Interstitial%fluxlwUP_allsky (IM, Model%levs+1)) + allocate (Interstitial%fluxlwDOWN_allsky (IM, Model%levs+1)) + allocate (Interstitial%fluxlwUP_clrsky (IM, Model%levs+1)) + allocate (Interstitial%fluxlwDOWN_clrsky (IM, Model%levs+1)) + allocate (Interstitial%fluxswUP_allsky (IM, Model%levs+1)) + allocate (Interstitial%fluxswDOWN_allsky (IM, Model%levs+1)) + allocate (Interstitial%fluxswUP_clrsky (IM, Model%levs+1)) + allocate (Interstitial%fluxswDOWN_clrsky (IM, Model%levs+1)) + allocate (Interstitial%aerosolslw (IM, Model%levs, Model%rrtmgp_nBandsLW, NF_AELW)) + allocate (Interstitial%aerosolssw (IM, Model%levs, Model%rrtmgp_nBandsSW, NF_AESW)) + allocate (Interstitial%cld_frac (IM, Model%levs)) + allocate (Interstitial%cld_lwp (IM, Model%levs)) + allocate (Interstitial%cld_reliq (IM, Model%levs)) + allocate (Interstitial%cld_iwp (IM, Model%levs)) + allocate (Interstitial%cld_reice (IM, Model%levs)) + allocate (Interstitial%cld_swp (IM, Model%levs)) + allocate (Interstitial%cld_resnow (IM, Model%levs)) + allocate (Interstitial%cld_rwp (IM, Model%levs)) + allocate (Interstitial%cld_rerain (IM, Model%levs)) + allocate (Interstitial%hsw0 (IM, Model%levs)) + allocate (Interstitial%hswc (IM, Model%levs)) + allocate (Interstitial%hswb (IM, Model%levs, Model%rrtmgp_nGptsSW)) + allocate (Interstitial%hlw0 (IM, Model%levs)) + allocate (Interstitial%hlwc (IM, Model%levs)) + allocate (Interstitial%hlwb (IM, Model%levs, Model%rrtmgp_nGptsLW)) + allocate (Interstitial%icseed_lw (IM)) + allocate (Interstitial%icseed_sw (IM)) + allocate (Interstitial%flxprf_lw (IM, Model%levs+1)) + allocate (Interstitial%flxprf_sw (IM, Model%levs+1)) + allocate (Interstitial%sfc_emiss_byband (Model%rrtmgp_nBandsLW,IM)) + allocate (Interstitial%sec_diff_byband (Model%rrtmgp_nBandsLW,IM)) + allocate (Interstitial%sfc_alb_nir_dir (Model%rrtmgp_nBandsSW,IM)) + allocate (Interstitial%sfc_alb_nir_dif (Model%rrtmgp_nBandsSW,IM)) + allocate (Interstitial%sfc_alb_uvvis_dir (Model%rrtmgp_nBandsSW,IM)) + allocate (Interstitial%sfc_alb_uvvis_dif (Model%rrtmgp_nBandsSW,IM)) + allocate (Interstitial%toa_src_sw (IM,Model%rrtmgp_nGptsSW)) + allocate (Interstitial%toa_src_lw (IM,Model%rrtmgp_nGptsLW)) + allocate (Interstitial%active_gases_array(Model%nGases)) + end if ! CIRES UGWP v0 allocate (Interstitial%gw_dudt (IM,Model%levs)) allocate (Interstitial%gw_dvdt (IM,Model%levs)) @@ -6222,7 +6439,50 @@ subroutine interstitial_rad_reset (Interstitial, Model) Interstitial%cwm = clear_val end if end if - + if (Model%doRRTMGP) then + Interstitial%tracer = clear_val + Interstitial%tv_lay = clear_val + Interstitial%relhum = clear_val + Interstitial%p_lev = clear_val + Interstitial%p_lay = clear_val + Interstitial%t_lev = clear_val + Interstitial%t_lay = clear_val + Interstitial%fluxlwUP_allsky = clear_val + Interstitial%fluxlwDOWN_allsky = clear_val + Interstitial%fluxlwUP_clrsky = clear_val + Interstitial%fluxlwDOWN_clrsky = clear_val + Interstitial%fluxswUP_allsky = clear_val + Interstitial%fluxswDOWN_allsky = clear_val + Interstitial%fluxswUP_clrsky = clear_val + Interstitial%fluxswDOWN_clrsky = clear_val + Interstitial%aerosolslw = clear_val + Interstitial%aerosolssw = clear_val + Interstitial%cld_frac = clear_val + Interstitial%cld_lwp = clear_val + Interstitial%cld_reliq = clear_val + Interstitial%cld_iwp = clear_val + Interstitial%cld_reice = clear_val + Interstitial%cld_swp = clear_val + Interstitial%cld_resnow = clear_val + Interstitial%cld_rwp = clear_val + Interstitial%cld_rerain = clear_val + Interstitial%hsw0 = clear_val + Interstitial%hswc = clear_val + Interstitial%hswb = clear_val + Interstitial%hlw0 = clear_val + Interstitial%hlwc = clear_val + Interstitial%hlwb = clear_val + Interstitial%icseed_lw = clear_val + Interstitial%icseed_sw = clear_val + Interstitial%sfc_emiss_byband = clear_val + Interstitial%sec_diff_byband = clear_val + Interstitial%sfc_alb_nir_dir = clear_val + Interstitial%sfc_alb_nir_dif = clear_val + Interstitial%sfc_alb_uvvis_dir = clear_val + Interstitial%sfc_alb_uvvis_dif = clear_val + Interstitial%toa_src_sw = clear_val + Interstitial%toa_src_lw = clear_val + end if ! end subroutine interstitial_rad_reset diff --git a/gfsphysics/GFS_layer/GFS_typedefs.meta b/gfsphysics/GFS_layer/GFS_typedefs.meta index f84e6d095..cc2874d21 100644 --- a/gfsphysics/GFS_layer/GFS_typedefs.meta +++ b/gfsphysics/GFS_layer/GFS_typedefs.meta @@ -1339,6 +1339,34 @@ dimensions = (horizontal_dimension) type = real kind = kind_phys +[alvsf] + standard_name = mean_vis_albedo_with_strong_cosz_dependency + long_name = mean vis albedo with strong cosz dependency + units = frac + dimensions = (horizontal_dimension) + type = real + kind = kind_phys +[alnsf] + standard_name = mean_nir_albedo_with_strong_cosz_dependency + long_name = mean nir albedo with strong cosz dependency + units = frac + dimensions = (horizontal_dimension) + type = real + kind = kind_phys +[facsf] + standard_name =fractional_coverage_with_strong_cosz_dependency + long_name = fractional coverage with strong cosz dependency + units = frac + dimensions = (horizontal_dimension) + type = real + kind = kind_phys +[facwf] + standard_name = fractional_coverage_with_weak_cosz_dependency + long_name = fractional coverage with weak cosz dependency + units = frac + dimensions = (horizontal_dimension) + type = real + kind = kind_phys ######################################################################## [ccpp-arg-table] @@ -2227,6 +2255,108 @@ units = flag dimensions = () type = logical +[active_gases] + standard_name = active_gases_used_by_RRTMGP + long_name = active gases used by RRTMGP + units = none + dimensions = () + type = character + kind = len=128 +[nGases] + standard_name = number_of_active_gases_used_by_RRTMGP + long_name = number of gases available used by RRTMGP (Model%nGases) + units = count + dimensions = () + type = integer +[rrtmgp_root] + standard_name = directory_for_rte_rrtmgp_source_code + long_name = directory for rte+rrtmgp source code (Model%rrtmgp_root) + units = none + dimensions = () + type = character + kind = len=128 +[lw_file_gas] + standard_name = rrtmgp_kdistribution_lw + long_name = file containing RRTMGP LW k-distribution (Model%lw_file_gas) + units = none + dimensions = () + type = character + kind = len=128 +[lw_file_clouds] + standard_name = rrtmgp_coeff_lw_cloud_optics + long_name = file containing coefficients for RRTMGP LW cloud optics (Model%lw_file_clouds) + units = none + dimensions = () + type = character + kind = len=128 +[rrtmgp_nBandsLW] + standard_name = number_of_lw_bands_rrtmgp + long_name = number of lw bands used in RRTMGP (Model%rrtmgp_nBandsLW) + units = count + dimensions = () + type = integer +[rrtmgp_nGptsLW] + standard_name = number_of_lw_spectral_points_rrtmgp + long_name = number of spectral points in RRTMGP LW calculation (model%rrtmgp_nGptsLW) + units = count + dimensions = () + type = integer +[sw_file_gas] + standard_name = rrtmgp_kdistribution_sw + long_name = file containing RRTMGP SW k-distribution (Model%sw_file_gas) + units = none + dimensions = () + type = character + kind = len=128 +[sw_file_clouds] + standard_name = rrtmgp_coeff_sw_cloud_optics + long_name = file containing coefficients for RRTMGP SW cloud optics (Model%sw_file_clouds) + units = none + dimensions = () + type = character + kind = len=128 +[rrtmgp_nBandsSW] + standard_name = number_of_sw_bands_rrtmgp + long_name = number of sw bands used in RRTMGP (Model%rrtmgp_nBandsSW) + units = count + dimensions = () + type = integer +[rrtmgp_nGptsSW] + standard_name = number_of_sw_spectral_points_rrtmgp + long_name = number of spectral points in RRTMGP SW calculation (model%rrtmgp_nGptsSW) + units = count + dimensions = () + type = integer +[rrtmgp_cld_optics] + standard_name = rrtmgp_cloud_optics_flag + long_name = Flag to control which RRTMGP cloud-optics scheme (Model%rrtmgp_cld_optics) + units = flag + dimensions = () + type = integer +[rrtmgp_nrghice] + standard_name = number_of_rrtmgp_ice_roughness + long_name = number of ice-roughness categories in RRTMGP calculation (Model%rrtmgp_nrghice) + units = count + dimensions = () + type = integer +[rrtmgp_nGauss_ang] + standard_name = number_of_angles_used_in_gaussian_quadrature + long_name = Number of angles used in Gaussian quadrature + units = count + dimensions = () + type = integer +[doRRTMGP] + standard_name = flag_for_rrtmgp_radiation_scheme + long_name = flag for RRTMGP scheme + units = flag + dimensions = () + type = logical +[do_GPsw_Glw] + standard_name = scheme_flag + long_name = When true GP is used for SW calculation and G is used for LW calculation + units = flag + dimensions = () + type = logical [ncld] standard_name = number_of_hydrometeors long_name = choice of cloud scheme / number of hydrometeors @@ -4580,6 +4710,13 @@ dimensions = (horizontal_dimension) type = real kind = kind_phys +[coszdg] + standard_name = daytime_mean_cosz_over_rad_call_period + long_name = daytime mean cosz over rad call period + units = none + dimensions = (horizontal_dimension) + type = real + kind = kind_phys [tsflw] standard_name = surface_midlayer_air_temperature_in_longwave_radiation long_name = surface air temp during lw calculation @@ -8262,7 +8399,510 @@ dimensions = (horizontal_dimension,vertical_dimension) type = real kind = kind_phys - +[p_lay] + standard_name = air_pressure_at_layer_for_RRTMGP_in_hPa + long_name = air pressure layer + units = hPa + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys + optional = F +[p_lev] + standard_name = air_pressure_at_interface_for_RRTMGP_in_hPa + long_name = air pressure level + units = hPa + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = real + kind = kind_phys + optional = F +[t_lay] + standard_name = air_temperature_at_layer_for_RRTMGP + long_name = air temperature layer + units = K + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys + optional = F +[t_lev] + standard_name = air_temperature_at_interface_for_RRTMGP + long_name = air temperature layer + units = K + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = real + kind = kind_phys + optional = F +[tv_lay] + standard_name = virtual_temperature + long_name = layer virtual temperature + units = K + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys + optional = F +[relhum] + standard_name = relative_humidity + long_name = layer relative humidity + units = frac + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys + optional = F +[tracer] + standard_name = chemical_tracers + long_name = chemical tracers + units = g g-1 + dimensions = (horizontal_dimension,vertical_dimension,number_of_tracers) + type = real + kind = kind_phys + optional = F +[hsw0] + standard_name = RRTMGP_sw_heating_rate_clear_sky + long_name = RRTMGP shortwave clear sky heating rate + units = K s-1 + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys + optional = T +[hswc] + standard_name = RRTMGP_sw_heating_rate_all_sky + long_name = RRTMGP shortwave all sky heating rate + units = K s-1 + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys + optional = F +[hswb] + standard_name = RRTMGP_sw_heating_rate_spectral + long_name = RRTMGP shortwave total sky heating rate (spectral) + units = K s-1 + dimensions = (horizontal_dimension,vertical_dimension,number_of_sw_spectral_points_rrtmgp) + type = real + kind = kind_phys + optional = T +[hlw0] + standard_name = RRTMGP_lw_heating_rate_clear_sky + long_name = RRTMGP longwave clear sky heating rate + units = K s-1 + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys + optional = T +[hlwc] + standard_name = RRTMGP_lw_heating_rate_all_sky + long_name = RRTMGP longwave all sky heating rate + units = K s-1 + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys + optional = F +[hlwb] + standard_name = RRTMGP_lw_heating_rate_spectral + long_name = RRTMGP longwave total sky heating rate (spectral) + units = K s-1 + dimensions = (horizontal_dimension,vertical_dimension,number_of_lw_spectral_points_rrtmgp) + type = real + kind = kind_phys + optional = T +[ipsdsw0] + standard_name = initial_permutation_seed_sw + long_name = initial seed for McICA SW + units = none + dimensions = () + type = integer + optional = F +[ipsdlw0] + standard_name = initial_permutation_seed_lw + long_name = initial seed for McICA LW + units = none + dimensions = () + type = integer + optional = F +[cld_frac] + standard_name = RRTMGP_total_cloud_fraction + long_name = layer total cloud fraction + units = frac + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys +[cld_lwp] + standard_name = RRTMGP_cloud_liquid_water_path + long_name = layer cloud liquid water path + units = g m-2 + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys +[cld_reliq] + standard_name = RRTMGP_mean_effective_radius_for_liquid_cloud + long_name = mean effective radius for liquid cloud + units = micron + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys +[cld_iwp] + standard_name = RRTMGP_cloud_ice_water_path + long_name = layer cloud ice water path + units = g m-2 + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys +[cld_reice] + standard_name = RRTMGP_mean_effective_radius_for_ice_cloud + long_name = mean effective radius for ice cloud + units = micron + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys +[cld_rwp] + standard_name = RRTMGP_cloud_rain_water_path + long_name = cloud rain water path + units = g m-2 + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys +[cld_rerain] + standard_name = RRTMGP_mean_effective_radius_for_rain_drop + long_name = mean effective radius for rain drop + units = micron + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys +[cld_swp] + standard_name = RRTMGP_cloud_snow_water_path + long_name = cloud snow water path + units = g m-2 + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys +[cld_resnow] + standard_name = RRTMGP_mean_effective_radius_for_snow_flake + long_name = mean effective radius for snow flake + units = micron + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys +[cldtausw] + standard_name = RRTMGP_cloud_optical_depth_layers_at_0_55mu_band + long_name = approx .55mu band layer cloud optical depth + units = none + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys + optional = F +[cldtaulw] + standard_name = RRTMGP_cloud_optical_depth_layers_at_10mu_band + long_name = approx 10mu band layer cloud optical depth + units = none + dimensions = (horizontal_dimension,vertical_dimension) + type = real + kind = kind_phys +[fluxlwUP_allsky] + standard_name = RRTMGP_lw_flux_profile_upward_allsky + long_name = RRTMGP upward longwave all-sky flux profile + units = W m-2 + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = real + kind = kind_phys + optional = F +[fluxlwDOWN_allsky] + standard_name = RRTMGP_lw_flux_profile_downward_allsky + long_name = RRTMGP downward longwave all-sky flux profile + units = W m-2 + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = real + kind = kind_phys + optional = F +[fluxlwUP_clrsky] + standard_name = RRTMGP_lw_flux_profile_upward_clrsky + long_name = RRTMGP upward longwave clr-sky flux profile + units = W m-2 + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = real + kind = kind_phys + optional = F +[fluxlwDOWN_clrsky] + standard_name = RRTMGP_lw_flux_profile_downward_clrsky + long_name = RRTMGP downward longwave clr-sky flux profile + units = W m-2 + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = real + kind = kind_phys + optional = F +[fluxswUP_allsky] + standard_name = RRTMGP_sw_flux_profile_upward_allsky + long_name = RRTMGP upward shortwave all-sky flux profile + units = W m-2 + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = real + kind = kind_phys + optional = F +[fluxswDOWN_allsky] + standard_name = RRTMGP_sw_flux_profile_downward_allsky + long_name = RRTMGP downward shortwave all-sky flux profile + units = W m-2 + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = real + kind = kind_phys + optional = F +[fluxswUP_clrsky] + standard_name = RRTMGP_sw_flux_profile_upward_clrsky + long_name = RRTMGP upward shortwave clr-sky flux profile + units = W m-2 + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = real + kind = kind_phys + optional = F +[fluxswDOWN_clrsky] + standard_name = RRTMGP_sw_flux_profile_downward_clrsky + long_name = RRTMGP downward shortwave clr-sky flux profile + units = W m-2 + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = real + kind = kind_phys + optional = F +[flxprf_lw] + standard_name = RRTMGP_lw_fluxes + long_name = lw fluxes total sky / csk and up / down at levels + units = W m-2 + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = proflw_type + optional = T +[flxprf_sw] + standard_name = RRTMGP_sw_fluxes + long_name = sw fluxes total sky / csk and up / down at levels + units = W m-2 + dimensions = (horizontal_dimension,vertical_dimension_plus_one) + type = profsw_type + optional = T +[aerosolslw] + standard_name = RRTMGP_aerosol_optical_properties_for_longwave_bands_01_16 + long_name = aerosol optical properties for longwave bands 01-16 + units = various + dimensions = (horizontal_dimension,vertical_dimension, number_of_lw_bands_rrtmgp,number_of_aerosol_output_fields_for_longwave_radiation) + type = real + kind = kind_phys + optional = F +[aerosolslw(:,:,:,1)] + standard_name = RRTMGP_aerosol_optical_depth_for_longwave_bands_01_16 + long_name = aerosol optical depth for longwave bands 01-16 + units = none + dimensions = (horizontal_dimension,vertical_dimension, number_of_lw_bands_rrtmgp) + type = real + kind = kind_phys +[aerosolslw(:,:,:,2)] + standard_name = RRTMGP_aerosol_single_scattering_albedo_for_longwave_bands_01_16 + long_name = aerosol single scattering albedo for longwave bands 01-16 + units = frac + dimensions = (horizontal_dimension,vertical_dimension, number_of_lw_bands_rrtmgp) + type = real + kind = kind_phys +[aerosolslw(:,:,:,3)] + standard_name = RRTMGP_aerosol_asymmetry_parameter_for_longwave_bands_01_16 + long_name = aerosol asymmetry parameter for longwave bands 01-16 + units = none + dimensions = (horizontal_dimension,vertical_dimension, number_of_lw_bands_rrtmgp) + type = real + kind = kind_phys +[aerosolssw] + standard_name = RRTMGP_aerosol_optical_properties_for_shortwave_bands_01_16 + long_name = aerosol optical properties for shortwave bands 01-16 + units = various + dimensions = (horizontal_dimension,vertical_dimension, number_of_sw_bands_rrtmgp, number_of_aerosol_output_fields_for_shortwave_radiation) + type = real + kind = kind_phys +[aerosolssw(:,:,:,1)] + standard_name = RRTMGP_aerosol_optical_depth_for_shortwave_bands_01_16 + long_name = aerosol optical depth for shortwave bands 01-16 + units = none + dimensions = (horizontal_dimension,vertical_dimension, number_of_sw_bands_rrtmgp) + type = real + kind = kind_phys +[aerosolssw(:,:,:,2)] + standard_name = RRTMGP_aerosol_single_scattering_albedo_for_shortwave_bands_01_16 + long_name = aerosol single scattering albedo for shortwave bands 01-16 + units = frac + dimensions = (horizontal_dimension,vertical_dimension, number_of_sw_bands_rrtmgp) + type = real + kind = kind_phys +[aerosolssw(:,:,:,3)] + standard_name = RRTMGP_aerosol_asymmetry_parameter_for_shortwave_bands_01_16 + long_name = aerosol asymmetry parameter for shortwave bands 01-16 + units = none + dimensions = (horizontal_dimension,vertical_dimension, number_of_sw_bands_rrtmgp) + type = real + kind = kind_phys +[icseed_lw] + standard_name = seed_random_numbers_lw_for_RRTMGP + long_name = seed for random number generation for longwave radiation + units = none + dimensions = (horizontal_dimension) + type = integer + optional = F +[icseed_sw] + standard_name = seed_random_numbers_sw_for_RRTMGP + long_name = seed for random number generation for shortwave radiation + units = none + dimensions = (horizontal_dimension) + type = integer + optional = F +[sw_gas_props] + standard_name = coefficients_for_sw_gas_optics + long_name = DDT containing spectral information for RRTMGP SW radiation scheme + units = DDT + dimensions = () + type = ty_gas_optics_rrtmgp + optional = F +[sw_cloud_props] + standard_name = coefficients_for_sw_cloud_optics + long_name = DDT containing spectral information for RRTMGP SW radiation scheme + units = DDT + dimensions = () + type = ty_cloud_optics + optional = F +[sw_optical_props_clrsky] + standard_name = shortwave_optical_properties_for_clear_sky + long_name = Fortran DDT containing RRTMGP optical properties + units = DDT + dimensions = () + type = ty_optical_props_2str + optional = F +[sw_optical_props_cloudsByBand] + standard_name = shortwave_optical_properties_for_cloudy_atmosphere_by_band + long_name = Fortran DDT containing RRTMGP optical properties + units = DDT + dimensions = () + type = ty_optical_props_2str +[sw_optical_props_clouds] + standard_name = shortwave_optical_properties_for_cloudy_atmosphere + long_name = Fortran DDT containing RRTMGP optical properties + units = DDT + dimensions = () + type = ty_optical_props_2str + optional = F +[sw_optical_props_aerosol] + standard_name = shortwave_optical_properties_for_aerosols + long_name = Fortran DDT containing RRTMGP optical properties + units = DDT + dimensions = () + type = ty_optical_props_2str + optional = F +[gas_concentrations] + standard_name = Gas_concentrations_for_RRTMGP_suite + long_name = DDT containing gas concentrations for RRTMGP radiation scheme + units = DDT + dimensions = () + type = ty_gas_concs + optional = F +[sources] + standard_name = longwave_source_function + long_name = Fortran DDT containing RRTMGP source functions + units = DDT + dimensions = () + type = ty_source_func_lw + optional = F +[lw_gas_props] + standard_name = coefficients_for_lw_gas_optics + long_name = DDT containing spectral information for RRTMGP LW radiation scheme + units = DDT + dimensions = () + type = ty_gas_optics_rrtmgp + optional = F +[lw_cloud_props] + standard_name = coefficients_for_lw_cloud_optics + long_name = DDT containing spectral information for RRTMGP LW radiation scheme + units = DDT + dimensions = () + type = ty_cloud_optics + optional = F +[lw_optical_props_clrsky] + standard_name = longwave_optical_properties_for_clear_sky + long_name = Fortran DDT containing RRTMGP optical properties + units = DDT + dimensions = () + type = ty_optical_props_1scl + optional = F +[lw_optical_props_clouds] + standard_name = longwave_optical_properties_for_cloudy_atmosphere + long_name = Fortran DDT containing RRTMGP optical properties + units = DDT + dimensions = () + type = ty_optical_props_1scl + optional = F +[lw_optical_props_cloudsByBand] + standard_name = longwave_optical_properties_for_cloudy_atmosphere_by_band + long_name = Fortran DDT containing RRTMGP optical properties + units = DDT + dimensions = () + type = ty_optical_props_1scl +[lw_optical_props_aerosol] + standard_name = longwave_optical_properties_for_aerosols + long_name = Fortran DDT containing RRTMGP optical properties + units = DDT + dimensions = () + type = ty_optical_props_1scl + optional = F +[sfc_emiss_byband] + standard_name = surface_emissivity_in_each_RRTMGP_LW_band + long_name = surface emissivity in each RRTMGP LW band + units = none + dimensions = (number_of_lw_bands_rrtmgp,horizontal_dimension) + type = real + kind = kind_phys +[sec_diff_byband] + standard_name = secant_of_diffusivity_angle_each_RRTMGP_LW_band + long_name = secant of diffusivity angle in each RRTMGP LW band + units = none + dimensions = (number_of_lw_bands_rrtmgp,horizontal_dimension) + type = real + kind = kind_phys +[sfc_alb_nir_dir] + standard_name = surface_albedo_nearIR_direct + long_name = near-IR (direct) surface albedo (sfc_alb_nir_dir) + units = none + dimensions = (number_of_sw_bands_rrtmgp,horizontal_dimension) + type = real + kind = kind_phys +[sfc_alb_nir_dif] + standard_name = surface_albedo_nearIR_diffuse + long_name = near-IR (diffuse) surface albedo (sfc_alb_nir_dif) + units = none + dimensions = (number_of_sw_bands_rrtmgp,horizontal_dimension) + type = real + kind = kind_phys +[sfc_alb_uvvis_dir] + standard_name = surface_albedo_uvvis_dir + long_name = UVVIS (direct) surface albedo (sfc_alb_uvvis_dir) + units = none + dimensions = (number_of_sw_bands_rrtmgp,horizontal_dimension) + type = real + kind = kind_phys +[sfc_alb_uvvis_dif] + standard_name = surface_albedo_uvvis_dif + long_name = UVVIS (diffuse) surface albedo (sfc_alb_uvvis_dif) + units = none + dimensions = (number_of_sw_bands_rrtmgp,horizontal_dimension) + type = real + kind = kind_phys +[toa_src_lw] + standard_name = toa_incident_lw_flux_by_spectral_point + long_name = TOA longwave incident flux at each spectral points + units = W m-2 + dimensions = (horizontal_dimension,number_of_lw_spectral_points_rrtmgp) + type = real + kind = kind_phys +[toa_src_sw] + standard_name = toa_incident_sw_flux_by_spectral_point + long_name = TOA shortwave incident flux at each spectral points + units = W m-2 + dimensions = (horizontal_dimension,number_of_sw_spectral_points_rrtmgp) + type = real + kind = kind_phys +[active_gases_array] + standard_name = list_of_active_gases_used_by_RRTMGP + long_name = list of active gases used by RRTMGP + units = none + dimensions = (number_of_active_gases_used_by_RRTMGP) + type = character + kind = len=128 ######################################################################## [ccpp-arg-table] name = GFS_data_type diff --git a/gfsphysics/makefile b/gfsphysics/makefile index d195512a2..63086db34 100644 --- a/gfsphysics/makefile +++ b/gfsphysics/makefile @@ -23,6 +23,11 @@ CPPDEFS += -DNEW_TAUCTMAX -DSMALL_PE -DNEMS_GSM -DINTERNAL_FILE_NML # CCPP dynamic and static builds ifneq (,$(findstring CCPP,$(CPPDEFS))) + +# CCPP directory +CCPP_DIR = /home/Dustin.Swales/Projects/UFS/ufs-weather-model/FV3/ccpp +FFLAGS += -I$(CCPP_DIR)/build/physics + # Set flags for 32-bit dynamics build ifeq ($(DYN32),Y) CPPDEFS += -DOVERLOAD_R4 @@ -58,7 +63,33 @@ SRCS_F90 = \ ./GFS_layer/GFS_diagnostics.F90 \ ./GFS_layer/GFS_driver.F90 \ ./GFS_layer/GFS_restart.F90 \ - ./GFS_layer/GFS_typedefs.F90 + ./GFS_layer/GFS_typedefs.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rrtmgp/mo_gas_concentrations.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rrtmgp/mo_gas_optics.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rrtmgp/mo_gas_optics_rrtmgp.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rrtmgp/mo_rrtmgp_constants.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rrtmgp/mo_rrtmgp_util_reorder.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rrtmgp/mo_rrtmgp_util_string.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rrtmgp/kernels/mo_gas_optics_kernels.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rrtmgp/kernels/mo_rrtmgp_util_reorder_kernels.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rte/mo_fluxes.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rte/mo_rte_util_array.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rte/mo_optical_props.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rte/mo_rte_kind.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rte/mo_rte_lw.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rte/mo_rte_sw.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rte/mo_source_functions.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rte/kernels/mo_fluxes_broadband_kernels.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rte/kernels/mo_optical_props_kernels.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/rte/kernels/mo_rte_solver_kernels.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/extensions/mo_compute_bc.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/extensions/mo_fluxes_byband.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/extensions/mo_fluxes_byband_kernels.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/extensions/mo_fluxes_bygpoint.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/extensions/mo_heating_rates.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/extensions/mo_rrtmgp_clr_all_sky.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/extensions/cloud_optics/mo_cloud_optics.F90 \ + $(CCPP_DIR)/physics/physics/rte-rrtmgp/extensions/cloud_optics/mo_cloud_sampling.F90 # non-CCPP build else SRCS_f = \ diff --git a/io/FV3GFS_io.F90 b/io/FV3GFS_io.F90 index 972d43fde..70fbe717e 100644 --- a/io/FV3GFS_io.F90 +++ b/io/FV3GFS_io.F90 @@ -1115,7 +1115,6 @@ subroutine sfc_prop_restart_read (Sfcprop, Atm_block, Model, fv_domain) enddo endif !#endif - if(Model%frac_grid) then ! 3-way composite do nb = 1, Atm_block%nblks do ix = 1, Atm_block%blksz(nb)