FatesInterfaceMod Module



Variables

Type Visibility Attributes Name Initial
integer, protected :: hlm_numSWb
integer, protected :: hlm_ivis
integer, protected :: hlm_inir
integer, protected :: hlm_numlevgrnd
integer, protected :: hlm_is_restart
character(len=16), protected :: hlm_name
real(kind=r8), protected :: hlm_hio_ignore_val
integer, protected :: hlm_masterproc
integer, protected :: hlm_ipedof
integer, protected :: hlm_max_patch_per_site
integer, protected :: hlm_parteh_mode
integer, protected :: hlm_use_vertsoilc
integer, protected :: hlm_use_spitfire
integer, protected :: hlm_use_logging
integer, protected :: hlm_use_planthydro
integer, protected :: hlm_use_ed_st3
integer, protected :: hlm_use_ed_prescribed_phys
integer, protected :: hlm_use_inventory_init
character(len=256), protected :: hlm_inventory_ctrl_file
integer, protected :: fates_maxElementsPerPatch
integer, protected :: fates_maxElementsPerSite
real(kind=r8), public, allocatable :: fates_hdim_levsclass(:)
integer, public, allocatable :: fates_hdim_pfmap_levscpf(:)
integer, public, allocatable :: fates_hdim_scmap_levscpf(:)
real(kind=r8), public, allocatable :: fates_hdim_levage(:)
real(kind=r8), public, allocatable :: fates_hdim_levheight(:)
integer, public, allocatable :: fates_hdim_levpft(:)
integer, public, allocatable :: fates_hdim_levfuel(:)
integer, public, allocatable :: fates_hdim_levcwdsc(:)
integer, public, allocatable :: fates_hdim_levcan(:)
integer, public, allocatable :: fates_hdim_levelem(:)
integer, public, allocatable :: fates_hdim_canmap_levcnlf(:)
integer, public, allocatable :: fates_hdim_lfmap_levcnlf(:)
integer, public, allocatable :: fates_hdim_canmap_levcnlfpf(:)
integer, public, allocatable :: fates_hdim_lfmap_levcnlfpf(:)
integer, public, allocatable :: fates_hdim_pftmap_levcnlfpf(:)
integer, public, allocatable :: fates_hdim_scmap_levscag(:)
integer, public, allocatable :: fates_hdim_agmap_levscag(:)
integer, public, allocatable :: fates_hdim_scmap_levscagpft(:)
integer, public, allocatable :: fates_hdim_agmap_levscagpft(:)
integer, public, allocatable :: fates_hdim_pftmap_levscagpft(:)
integer, public, allocatable :: fates_hdim_agmap_levagepft(:)
integer, public, allocatable :: fates_hdim_pftmap_levagepft(:)
integer, public, allocatable :: fates_hdim_elmap_levelpft(:)
integer, public, allocatable :: fates_hdim_elmap_levelcwd(:)
integer, public, allocatable :: fates_hdim_elmap_levelage(:)
integer, public, allocatable :: fates_hdim_pftmap_levelpft(:)
integer, public, allocatable :: fates_hdim_cwdmap_levelcwd(:)
integer, public, allocatable :: fates_hdim_agemap_levelage(:)
integer, protected :: hlm_current_year
integer, protected :: hlm_current_month
integer, protected :: hlm_current_day
integer, protected :: hlm_current_tod
integer, protected :: hlm_current_date
integer, protected :: hlm_reference_date
real(kind=r8), protected :: hlm_model_day
integer, protected :: hlm_day_of_year
integer, protected :: hlm_days_per_year
real(kind=r8), protected :: hlm_freq_day
integer, protected :: numpft
integer, protected :: nlevsclass
integer, protected :: nlevage
integer, protected :: nlevheight
integer, protected :: nleafage

Derived Types

type, public ::  bc_in_type

Components

Type Visibility Attributes Name Initial
integer, public :: npatches
integer, public :: nlevsoil
integer, public :: nlevdecomp
real(kind=r8), public, allocatable :: zi_sisl(:)
real(kind=r8), public, allocatable :: dz_sisl(:)
real(kind=r8), public, allocatable :: z_sisl(:)
real(kind=r8), public, allocatable :: dz_decomp_sisl(:)
integer, public, allocatable :: decomp_id(:)
real(kind=r8), public :: t_veg24_si
real(kind=r8), public, allocatable :: t_veg24_pa(:)
real(kind=r8), public, allocatable :: precip24_pa(:)
real(kind=r8), public, allocatable :: relhumid24_pa(:)
real(kind=r8), public, allocatable :: wind24_pa(:)
real(kind=r8), public, allocatable :: solad_parb(:,:)
real(kind=r8), public, allocatable :: solai_parb(:,:)
integer, public, allocatable :: filter_photo_pa(:)
real(kind=r8), public :: forc_pbot
real(kind=r8), public, allocatable :: dayl_factor_pa(:)
real(kind=r8), public, allocatable :: esat_tv_pa(:)
real(kind=r8), public, allocatable :: eair_pa(:)
real(kind=r8), public, allocatable :: oair_pa(:)
real(kind=r8), public, allocatable :: cair_pa(:)
real(kind=r8), public, allocatable :: rb_pa(:)
real(kind=r8), public, allocatable :: t_veg_pa(:)
real(kind=r8), public, allocatable :: tgcm_pa(:)
real(kind=r8), public, allocatable :: t_soisno_sl(:)
logical, public, allocatable :: filter_vegzen_pa(:)
real(kind=r8), public, allocatable :: coszen_pa(:)
real(kind=r8), public, allocatable :: albgr_dir_rb(:)
real(kind=r8), public, allocatable :: albgr_dif_rb(:)
integer, public :: max_rooting_depth_index_col
real(kind=r8), public :: tot_het_resp
real(kind=r8), public :: tot_somc
real(kind=r8), public :: tot_litc
real(kind=r8), public :: snow_depth_si
real(kind=r8), public :: frac_sno_eff_si
real(kind=r8), public, allocatable :: smp_sl(:)
real(kind=r8), public, allocatable :: salinity_sl(:)
real(kind=r8), public, allocatable :: eff_porosity_sl(:)
real(kind=r8), public, allocatable :: watsat_sl(:)
real(kind=r8), public, allocatable :: tempk_sl(:)
real(kind=r8), public, allocatable :: h2o_liqvol_sl(:)
logical, public :: filter_btran
real(kind=r8), public, allocatable :: qflx_transp_pa(:)
real(kind=r8), public, allocatable :: swrad_net_pa(:)
real(kind=r8), public, allocatable :: lwrad_net_pa(:)
real(kind=r8), public, allocatable :: watsat_sisl(:)
real(kind=r8), public, allocatable :: watres_sisl(:)
real(kind=r8), public, allocatable :: sucsat_sisl(:)
real(kind=r8), public, allocatable :: bsw_sisl(:)
real(kind=r8), public, allocatable :: hksat_sisl(:)
real(kind=r8), public, allocatable :: h2o_liq_sisl(:)
real(kind=r8), public :: smpmin_si

type, public ::  bc_out_type

Components

Type Visibility Attributes Name Initial
real(kind=r8), public, allocatable :: fsun_pa(:)
real(kind=r8), public, allocatable :: laisun_pa(:)
real(kind=r8), public, allocatable :: laisha_pa(:)
logical, public, allocatable :: active_suction_sl(:)
real(kind=r8), public, allocatable :: rootr_pasl(:,:)
real(kind=r8), public, allocatable :: btran_pa(:)
real(kind=r8), public, allocatable :: rssun_pa(:)
real(kind=r8), public, allocatable :: rssha_pa(:)
real(kind=r8), public, allocatable :: albd_parb(:,:)
real(kind=r8), public, allocatable :: albi_parb(:,:)
real(kind=r8), public, allocatable :: fabd_parb(:,:)
real(kind=r8), public, allocatable :: fabi_parb(:,:)
real(kind=r8), public, allocatable :: ftdd_parb(:,:)
real(kind=r8), public, allocatable :: ftid_parb(:,:)
real(kind=r8), public, allocatable :: ftii_parb(:,:)
real(kind=r8), public, allocatable :: litt_flux_cel_c_si(:)
real(kind=r8), public, allocatable :: litt_flux_lig_c_si(:)
real(kind=r8), public, allocatable :: litt_flux_lab_c_si(:)
real(kind=r8), public, allocatable :: litt_flux_cel_n_si(:)
real(kind=r8), public, allocatable :: litt_flux_lig_n_si(:)
real(kind=r8), public, allocatable :: litt_flux_lab_n_si(:)
real(kind=r8), public, allocatable :: litt_flux_cel_p_si(:)
real(kind=r8), public, allocatable :: litt_flux_lig_p_si(:)
real(kind=r8), public, allocatable :: litt_flux_lab_p_si(:)
real(kind=r8), public, allocatable :: elai_pa(:)
real(kind=r8), public, allocatable :: esai_pa(:)
real(kind=r8), public, allocatable :: tlai_pa(:)
real(kind=r8), public, allocatable :: tsai_pa(:)
real(kind=r8), public, allocatable :: htop_pa(:)
real(kind=r8), public, allocatable :: hbot_pa(:)
real(kind=r8), public, allocatable :: z0m_pa(:)
real(kind=r8), public, allocatable :: displa_pa(:)
real(kind=r8), public, allocatable :: dleaf_pa(:)
real(kind=r8), public, allocatable :: canopy_fraction_pa(:)
real(kind=r8), public, allocatable :: frac_veg_nosno_alb_pa(:)
real(kind=r8), public :: plant_stored_h2o_si
real(kind=r8), public, allocatable :: qflx_soil2root_sisl(:)

type, public ::  fates_interface_type

Components

Type Visibility Attributes Name Initial
integer, public :: nsites
type(ed_site_type), public, pointer :: sites(:)
type(bc_in_type), public, allocatable :: bc_in(:)
type(bc_out_type), public, allocatable :: bc_out(:)

Type-Bound Procedures

procedure, public :: zero_bcs
procedure, public :: set_bcs

Subroutines

public subroutine FatesInterfaceInit(log_unit, global_verbose)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: log_unit
logical, intent(in) :: global_verbose

public subroutine allocate_bcin(bc_in, nlevsoil_in, nlevdecomp_in)

Arguments

Type IntentOptional Attributes Name
type(bc_in_type), intent(inout) :: bc_in
integer, intent(in) :: nlevsoil_in
integer, intent(in) :: nlevdecomp_in

public subroutine allocate_bcout(bc_out, nlevsoil_in, nlevdecomp_in)

Arguments

Type IntentOptional Attributes Name
type(bc_out_type), intent(inout) :: bc_out
integer, intent(in) :: nlevsoil_in
integer, intent(in) :: nlevdecomp_in

public subroutine set_fates_global_elements(use_fates)

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: use_fates

public subroutine SetFatesTime(current_year_in, current_month_in, current_day_in, current_tod_in, current_date_in, reference_date_in, model_day_in, day_of_year_in, days_per_year_in, freq_day_in)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: current_year_in
integer, intent(in) :: current_month_in
integer, intent(in) :: current_day_in
integer, intent(in) :: current_tod_in
integer, intent(in) :: current_date_in
integer, intent(in) :: reference_date_in
real(kind=r8), intent(in) :: model_day_in
integer, intent(in) :: day_of_year_in
integer, intent(in) :: days_per_year_in
real(kind=r8), intent(in) :: freq_day_in

public subroutine set_fates_ctrlparms(tag, ival, rval, cval)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: tag
integer, intent(in), optional :: ival
real(kind=r8), intent(in), optional :: rval
character(len=*), intent(in), optional :: cval

public subroutine FatesReportParameters(masterproc)

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: masterproc

public subroutine InitPARTEHGlobals()

Arguments

None