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 nocomp mode with large trees #995

Merged
merged 18 commits into from
Mar 23, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
move call to bleaf so it is avoided by sp mode
  • Loading branch information
Jessica F Needham committed Mar 23, 2023
commit e50b27bc6e10f1b4d235cebde7e9aa687f8cc9a0
15 changes: 11 additions & 4 deletions main/EDInitMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,11 @@ subroutine init_cohorts( site_in, patch_in, bc_in)
! Calculate the plant diameter from height
call h2d_allom(temp_cohort%hite,pft,temp_cohort%dbh)

! Calculate the leaf biomass from allometry
! (calculates a maximum first, then applies canopy trim)
call bleaf(temp_cohort%dbh,pft,temp_cohort%crowndamage, &
temp_cohort%canopy_trim,c_leaf)

endif ! sp mode

else ! interpret as initial diameter and calculate density
Expand All @@ -865,16 +870,18 @@ subroutine init_cohorts( site_in, patch_in, bc_in)

! calculate initial density required to close canopy
temp_cohort%n = patch_in%area / temp_cohort%c_area

! Calculate the leaf biomass from allometry
! (calculates a maximum first, then applies canopy trim)
call bleaf(temp_cohort%dbh,pft,temp_cohort%crowndamage, &
temp_cohort%canopy_trim,c_leaf)

else
write(fates_log(),*) 'Negative fates_recruit_init_density can only be used in no comp mode'
call endrun(msg=errMsg(sourcefile, __LINE__))
endif
endif

! Calculate the leaf biomass from allometry
! (calculates a maximum first, then applies canopy trim)
call bleaf(temp_cohort%dbh,pft,temp_cohort%crowndamage, &
temp_cohort%canopy_trim,c_leaf)

! Calculate total above-ground biomass from allometry
call bagw_allom(temp_cohort%dbh,pft,temp_cohort%crowndamage,c_agw)
Expand Down