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

Fix for bad leaf C:N ratios during transient land simulations #6370

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmricciuto
Copy link
Contributor

@dmricciuto dmricciuto commented Apr 26, 2024

Fix for seed initialization that caused C:N an C:P ratios to diverge for some grid cells in transient simulations.

Fixes #6368

[non-BFB]

Copy link

PR Preview Action v1.4.7
🚀 Deployed preview to https://E3SM-Project.github.io/E3SM/pr-preview/pr-6370/
on branch gh-pages at 2024-04-26 14:26 UTC

@dmricciuto dmricciuto added the non-BFB PR makes roundoff changes to answers. label Apr 26, 2024
@dmricciuto dmricciuto changed the title Dan Ricciuto's fix for weird plant C:N ratio during long-term simulat… Fix for bad leaf C:N ratios during transient land simulations Apr 26, 2024
@rljacob rljacob requested a review from thorntonpe May 1, 2024 21:16
@rljacob
Copy link
Member

rljacob commented May 1, 2024

Is this non-BFB just for 20TR cases?

Comment on lines +186 to +196
!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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's delete these commented-out lines and reindent the remaining lines.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dmricciuto please see above.

@rljacob
Copy link
Member

rljacob commented May 30, 2024

Discussion: might be needed for transient runs. should be BFB for 1850 spinup. Transient runs have started so have gotten lucky so far.

@rljacob
Copy link
Member

rljacob commented Jun 13, 2024

Would definitely change answers for already started v3 20TR runs so probably can't be in v3.0 code.

@rljacob rljacob added this to the v3.1beta milestone Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix PR Land non-BFB PR makes roundoff changes to answers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect C:N ratios and C:P causing balance errors in transient simulations
4 participants