Skip to content

Commit

Permalink
Dan Ricciuto's fix for weird plant C:N ratio during long-term simulat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
evasinha authored and Daniel Ricciuto committed Apr 26, 2024
1 parent ac74182 commit df11bbe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/elm/src/biogeochem/ComputeSeedMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -183,17 +183,17 @@ subroutine LeafProportions(pft_type, ignore_current_state, &
pstorage = 0._r8
pxfer = 0._r8

if (tot_leaf == 0._r8 .or. ignore_current_state) then
!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
else
pleaf = leaf /tot_leaf
pstorage = leaf_storage/tot_leaf
pxfer = leaf_xfer /tot_leaf
end if
!else
! pleaf = leaf /tot_leaf
! pstorage = leaf_storage/tot_leaf
! pxfer = leaf_xfer /tot_leaf
!end if

end subroutine LeafProportions

Expand Down

0 comments on commit df11bbe

Please sign in to comment.