@@ -6,18 +6,18 @@ module EDCohortDynamicsMod
66 ! !USES:
77 use FatesGlobals , only : endrun = > fates_endrun
88 use FatesGlobals , only : fates_log
9- use FatesInterfaceMod , only : hlm_freq_day
10- use FatesInterfaceMod , only : bc_in_type
11- use FatesInterfaceMod , only : hlm_use_planthydro
12- use FatesInterfaceMod , only : hlm_use_cohort_age_tracking
9+ use FatesInterfaceTypesMod , only : hlm_freq_day
10+ use FatesInterfaceTypesMod , only : bc_in_type
11+ use FatesInterfaceTypesMod , only : hlm_use_planthydro
12+ use FatesInterfaceTypesMod , only : hlm_use_cohort_age_tracking
1313 use FatesConstantsMod , only : r8 = > fates_r8
1414 use FatesConstantsMod , only : fates_unset_int
1515 use FatesConstantsMod , only : itrue,ifalse
1616 use FatesConstantsMod , only : fates_unset_r8
1717 use FatesConstantsMod , only : nearzero
1818 use FatesConstantsMod , only : calloc_abs_error
19- use FatesInterfaceMod , only : hlm_days_per_year
20- use FatesInterfaceMod , only : nleafage
19+ use FatesInterfaceTypesMod , only : hlm_days_per_year
20+ use FatesInterfaceTypesMod , only : nleafage
2121 use SFParamsMod , only : SF_val_CWD_frac
2222 use EDPftvarcon , only : EDPftvarcon_inst
2323 use EDPftvarcon , only : GetDecompyFrac
@@ -38,8 +38,8 @@ module EDCohortDynamicsMod
3838 use EDTypesMod , only : site_fluxdiags_type
3939 use EDTypesMod , only : num_elements
4040 use EDParamsMod , only : ED_val_cohort_age_fusion_tol
41- use FatesInterfaceMod , only : hlm_use_planthydro
42- use FatesInterfaceMod , only : hlm_parteh_mode
41+ use FatesInterfaceTypesMod , only : hlm_use_planthydro
42+ use FatesInterfaceTypesMod , only : hlm_parteh_mode
4343 use FatesPlantHydraulicsMod, only : FuseCohortHydraulics
4444 use FatesPlantHydraulicsMod, only : CopyCohortHydraulics
4545 use FatesPlantHydraulicsMod, only : UpdateSizeDepPlantHydProps
@@ -953,7 +953,7 @@ subroutine fuse_cohorts(currentSite, currentPatch, bc_in)
953953 ! !USES:
954954 use EDParamsMod , only : ED_val_cohort_size_fusion_tol
955955 use EDParamsMod , only : ED_val_cohort_age_fusion_tol
956- use FatesInterfaceMod , only : hlm_use_cohort_age_tracking
956+ use FatesInterfaceTypesMod , only : hlm_use_cohort_age_tracking
957957 use FatesConstantsMod , only : itrue
958958 use FatesConstantsMod, only : days_per_year
959959 use EDTypesMod , only : maxCohortsPerPatch
@@ -985,7 +985,6 @@ subroutine fuse_cohorts(currentSite, currentPatch, bc_in)
985985 real (r8 ) :: leaf_c_target
986986 real (r8 ) :: dynamic_size_fusion_tolerance
987987 real (r8 ) :: dynamic_age_fusion_tolerance
988- integer :: maxCohortsPerPatch_age_tracking
989988 real (r8 ) :: dbh
990989 real (r8 ) :: leaf_c ! leaf carbon [kg]
991990
@@ -1004,11 +1003,6 @@ subroutine fuse_cohorts(currentSite, currentPatch, bc_in)
10041003 ! set the cohort age fusion tolerance (in fraction of years)
10051004 dynamic_age_fusion_tolerance = ED_val_cohort_age_fusion_tol
10061005
1007- if ( hlm_use_cohort_age_tracking .eq. itrue) then
1008- maxCohortsPerPatch_age_tracking = 300
1009- end if
1010-
1011-
10121006
10131007 ! This needs to be a function of the canopy layer, because otherwise, at canopy closure
10141008 ! the number of cohorts doubles and very dissimilar cohorts are fused together
@@ -1434,7 +1428,7 @@ subroutine fuse_cohorts(currentSite, currentPatch, bc_in)
14341428
14351429
14361430 if ( hlm_use_cohort_age_tracking .eq. itrue) then
1437- if ( nocohorts > maxCohortsPerPatch_age_tracking ) then
1431+ if ( nocohorts > maxCohortsPerPatch ) then
14381432 iterate = 1
14391433 !- --------------------------------------------------------------------!
14401434 ! Making profile tolerance larger means that more fusion will happen !
0 commit comments