@@ -15,6 +15,7 @@ module EDLoggingMortalityMod
1515
1616 use FatesConstantsMod , only : r8 = > fates_r8
1717 use FatesConstantsMod , only : rsnbl_math_prec
18+ use FatesConstantsMod , only : fates_unset_int
1819 use FatesCohortMod , only : fates_cohort_type
1920 use FatesPatchMod , only : fates_patch_type
2021 use EDTypesMod , only : site_massbal_type
@@ -251,6 +252,10 @@ subroutine LoggingMortality_frac( currentSite, bc_in, pft_i, dbh, canopy_layer,
251252 ! todo: eventually set up distinct harvest practices, each with a set of input paramaeters
252253 ! todo: implement harvested carbon inputs
253254
255+
256+ ! Valid values are 0,1,2 so initialize to a different value
257+ cur_harvest_tag = fates_unset_int
258+
254259 ! The transition_landuse_from_off_to_on is for handling the special case of the first timestep after leaving potential
255260 ! vegetation mode. In this case, all prior historical land-use, including harvest, needs to be applied on that first day.
256261 ! So logging rates on that day are what is required to deforest exactly the amount of primary lands that will give the
@@ -288,6 +293,7 @@ subroutine LoggingMortality_frac( currentSite, bc_in, pft_i, dbh, canopy_layer,
288293 ! 0=use fates logging parameters directly when logging_time == .true.
289294 ! this means harvest the whole cohort area
290295 harvest_rate = 1._r8
296+ cur_harvest_tag = fates_bypass_harvest_debt
291297
292298 else if (hlm_use_lu_harvest == itrue .and. hlm_harvest_units == hlm_harvest_area_fraction) then
293299 ! We are harvesting based on areal fraction, not carbon/biomass terms.
0 commit comments