Skip to content

Commit

Permalink
use lai instead of treelai for b4b
Browse files Browse the repository at this point in the history
  • Loading branch information
rgknox committed Sep 13, 2022
1 parent 19f0dbc commit bf99a0b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions biogeochem/EDCanopyStructureMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,8 @@ subroutine leaf_area_profile( currentSite )
real(r8) :: dh ! vertical detph of height class (m)
real(r8) :: min_chite ! bottom of cohort canopy (m)
real(r8) :: max_chite ! top of cohort canopy (m)
real(r8) :: lai ! summed lai for checking m2 m-2
real(r8) :: lai ! we use this to preserve b4b right now (m2/m2)
real(r8) :: sai ! ""

!----------------------------------------------------------------------

Expand Down Expand Up @@ -1552,9 +1553,11 @@ subroutine leaf_area_profile( currentSite )
! How much of each tree is stem area index? Assuming that there is
! This may indeed be zero if there is a sensecent grass
! ----------------------------------------------------------------

lai = currentCohort%treelai * currentCohort%c_area/currentPatch%total_canopy_area
sai = currentCohort%treesai * currentCohort%c_area/currentPatch%total_canopy_area
if( (currentCohort%treelai+currentCohort%treesai) > nearzero)then
fleaf = currentCohort%treelai / (currentCohort%treelai + currentCohort%treesai)
!fleaf = currentCohort%treelai / (currentCohort%treelai + currentCohort%treesai)
fleaf = lai / (lai+sai)
else
fleaf = 0._r8
endif
Expand Down

0 comments on commit bf99a0b

Please sign in to comment.