Skip to content

Commit

Permalink
Fix for bad leaf C:N ratios during transient land simulations
Browse files Browse the repository at this point in the history
  • Loading branch information
evasinha authored and Daniel Ricciuto committed Oct 16, 2024
1 parent ac74182 commit 442e068
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions components/elm/src/biogeochem/ComputeSeedMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,10 @@ subroutine LeafProportions(pft_type, ignore_current_state, &
pstorage = 0._r8
pxfer = 0._r8

if (tot_leaf == 0._r8 .or. ignore_current_state) then
if (veg_vp%evergreen(pft_type) == 1._r8) then
pleaf = 1._r8
else
pstorage = 1._r8
end if
if (veg_vp%evergreen(pft_type) == 1._r8) then
pleaf = 1._r8
else
pleaf = leaf /tot_leaf
pstorage = leaf_storage/tot_leaf
pxfer = leaf_xfer /tot_leaf
pstorage = 1._r8
end if

end subroutine LeafProportions
Expand Down

0 comments on commit 442e068

Please sign in to comment.