Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize crowndamage for Satellite Phenology mode #939

Merged
merged 1 commit into from
Nov 15, 2022
Merged
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
9 changes: 4 additions & 5 deletions main/EDInitMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,11 @@ subroutine init_cohorts( site_in, patch_in, bc_in)

temp_cohort%canopy_trim = 1.0_r8

! h,dbh,leafc,n from SP values or from small initial size.
! Assume no damage to begin with - since we assume no damage
! we do not need to initialise branch frac just yet.
temp_cohort%crowndamage = 1

! h,dbh,leafc,n from SP values or from small initial size.
if(hlm_use_sp.eq.itrue)then
init = itrue
! At this point, we do not know the bc_in values of tlai tsai and htop,
Expand All @@ -820,10 +823,6 @@ subroutine init_cohorts( site_in, patch_in, bc_in)
else
temp_cohort%hite = EDPftvarcon_inst%hgt_min(pft)

! Assume no damage to begin with - since we assume no damage
! we do not need to initialise branch frac just yet.
temp_cohort%crowndamage = 1

! Calculate the plant diameter from height
call h2d_allom(temp_cohort%hite,pft,temp_cohort%dbh)

Expand Down