-
Notifications
You must be signed in to change notification settings - Fork 92
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
shorten cohort memory arrays to nlevleafmem #769
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…mory and computation
rgknox
added
the
PR status: Not Ready
The author is signaling that this PR is a work in progress and not ready for integration.
label
Aug 9, 2021
To Do:
|
… shorter year_net_uptake
rgknox
removed
the
PR status: Not Ready
The author is signaling that this PR is a work in progress and not ready for integration.
label
Dec 12, 2022
I plan to carve this up in to smaller chunks and submit incrementally, closing (but will rise again!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
There are two arrays used to track the carbon budget of leaf layers in the plant: ts_net_uptake and year_net_uptake. A few notes about these arrays:
This PR changes the way we track leaf layer carbon balance, by remembering only the 4 lowest layers in the plant's crown, instead of all 30. The memory of these layers is used solely for trimming, and trimming only happens at the bottom, so we need not remember all of the layers, just the bottom. We track 4 layers, because that is 1 larger than the number of layer memory needed to perform a regression on the trimming calculation.
Various changes to the code are in response to the change in this layering, such as how we fuse cohorts with memory in different layers. Also, there is a difference between the maximum number of layers a plant could have when on allometry, versus the number of layers it currently has. The latter may be lower than the maximum if a plant is not replacing leaf tissues lost to turnover.
Fixes: #272
Addresses #644
Collaborators:
@ckoven @glemieux @rosiealice
Expectation of Answer Changes:
Answers should change, but its unlikely any of our tests will catch the change because trimming only occurs annually.
Checklist:
Test Results:
TBD
CTSM (or) E3SM (specify which) test hash-tag:
CTSM (or) E3SM (specify which) baseline hash-tag:
FATES baseline hash-tag:
Test Output: