@@ -46,6 +46,7 @@ module EDParamsMod
4646 ! two special parameters whose size is defined in the parameter file
4747 real (r8 ),protected,allocatable :: ED_val_history_sizeclass_bin_edges(:)
4848 real (r8 ),protected,allocatable :: ED_val_history_ageclass_bin_edges(:)
49+ real (r8 ),protected,allocatable :: ED_val_history_height_bin_edges(:)
4950
5051 character (len= param_string_length),parameter :: ED_name_mort_disturb_frac = " fates_mort_disturb_frac"
5152 character (len= param_string_length),parameter :: ED_name_comp_excln = " fates_comp_excln"
@@ -73,6 +74,7 @@ module EDParamsMod
7374 ! non-scalar parameter names
7475 character (len= param_string_length),parameter :: ED_name_history_sizeclass_bin_edges= " fates_history_sizeclass_bin_edges"
7576 character (len= param_string_length),parameter :: ED_name_history_ageclass_bin_edges= " fates_history_ageclass_bin_edges"
77+ character (len= param_string_length),parameter :: ED_name_history_height_bin_edges= " fates_history_height_bin_edges"
7678
7779 ! Hydraulics Control Parameters (ONLY RELEVANT WHEN USE_FATES_HYDR = TRUE)
7880 ! ----------------------------------------------------------------------------------------------
@@ -171,6 +173,7 @@ subroutine FatesRegisterParams(fates_params)
171173
172174 use FatesParametersInterface, only : fates_parameters_type, dimension_name_scalar1d, dimension_shape_1d
173175 use FatesParametersInterface, only : dimension_name_history_size_bins, dimension_name_history_age_bins
176+ use FatesParametersInterface, only : dimension_name_history_height_bins
174177
175178 implicit none
176179
@@ -179,6 +182,7 @@ subroutine FatesRegisterParams(fates_params)
179182 character (len= param_string_length), parameter :: dim_names(1 ) = (/ dimension_name_scalar1d/ )
180183 character (len= param_string_length), parameter :: dim_names_sizeclass(1 ) = (/ dimension_name_history_size_bins/ )
181184 character (len= param_string_length), parameter :: dim_names_ageclass(1 ) = (/ dimension_name_history_age_bins/ )
185+ character (len= param_string_length), parameter :: dim_names_height(1 ) = (/ dimension_name_history_height_bins/ )
182186
183187 call FatesParamsInit()
184188
@@ -285,6 +289,9 @@ subroutine FatesRegisterParams(fates_params)
285289 call fates_params% RegisterParameter(name= ED_name_history_ageclass_bin_edges, dimension_shape= dimension_shape_1d, &
286290 dimension_names= dim_names_ageclass)
287291
292+ call fates_params% RegisterParameter(name= ED_name_history_height_bin_edges, dimension_shape= dimension_shape_1d, &
293+ dimension_names= dim_names_height)
294+
288295 end subroutine FatesRegisterParams
289296
290297
@@ -400,6 +407,9 @@ subroutine FatesReceiveParams(fates_params)
400407 call fates_params% RetreiveParameterAllocate(name= ED_name_history_ageclass_bin_edges, &
401408 data = ED_val_history_ageclass_bin_edges)
402409
410+ call fates_params% RetreiveParameterAllocate(name= ED_name_history_height_bin_edges, &
411+ data = ED_val_history_height_bin_edges)
412+
403413
404414 end subroutine FatesReceiveParams
405415
0 commit comments