Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions biogeochem/EDCohortDynamicsMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Module EDCohortDynamicsMod
use FatesConstantsMod , only : fates_unset_r8
use FatesConstantsMod , only : nearzero
use FatesConstantsMod , only : calloc_abs_error
use FatesConstantsMod , only : ievergreen
use FatesInterfaceTypesMod , only : nleafage
use SFParamsMod , only : SF_val_CWD_frac
use EDPftvarcon , only : EDPftvarcon_inst
Expand Down Expand Up @@ -385,6 +386,20 @@ subroutine terminate_cohorts( currentSite, currentPatch, level , call_index, bc_

endif

! live biomass pools are terminally depleted by grazing in grasses.
if(prt_params%phen_leaf_habit(currentCohort%pft) == ievergreen .and. &
prt_params%woody(currentCohort%) .eq. itrue) then
if ( ( leaf_c + fnrt_c ) < 1e-10_r8) then
terminate = itrue
termination_type = i_term_mort_type_cstarv
if ( debug ) then
write(fates_log(),*) 'terminating cohorts 5', &
sapw_c,leaf_c,fnrt_c,store_c,currentCohort%pft,call_index
endif
endif
endif


end if if_level_2

! Outside the maximum canopy layer
Expand Down