-
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
multi-element litter, mass checks and diagnostics #524
Conversation
…, element chemical naming convention, and better organ looping.
…lling of phosphorus
…itter flux boundary condition
…updates to intialization as well
… shorter than this commit message
… mass pools. changing create_cohort()
…ruitment, shifted things so that the PRT object initialization is not a cohort object argument.
@jkshuman , I think I addressed all your comments, and accepted your suggestions. Let me know if I missed anything. I went into the EDPhysiology code and double checked how the resource_management diagnostics are filled, and I think the refactors maintain what is in master. |
I ran some comparison simulations with an updated base branch that is based off of tag 1.29. Things are looking good. In this example, both the test and base are started with inventory at BCI, simulate for 8 years, and have logging, fire, disturbance and recruitment all active. I've also done similar tests with prescribed physiology mode as well. https://drive.google.com/file/d/1QIROC4-NDLlX4veNpMvsPYAXVk49Qhtj/view?usp=sharing Will continue testing, next is restart tests (again), hydro and then a long smoke test with the F10 grid. If anyone wants to get reviews in on this, please do so, hopefully we can get this integrated very soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've gone through about half of the code changes, mostly focused on the new module addition and the modules that had smaller sets of changes. Per our face-to-face conversation, I'll probably need another day to finish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with part 2 or 2 of the review. I really like the way the litter is modularized in this refactor. I have a bunch of questions, mostly for clarification, one potential typo, and one suggested change. Nice work!
… leaves and roots. Fixed error tracker on patch resizing.
f10 simulations are progressing, in year 80: /glade/scratch/rgknox/fates-clm-tests/me-litt-v3-f10_f10_mg37/run Standard regression tests (no baseline comparison) all expected PASS: |
Co-Authored-By: Gregory Lemieux <[email protected]>
|
||
seed_mass = num_dead * store_m * EDPftvarcon_inst%allom_frbstor_repro(pft) | ||
|
||
! SEED DISTRIBUTION IS BREAKING MASS CONSERVATION RIGHT NOW... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this still the case and if so do we need to keep track of it with an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I was not able to get tight mass conservation on this, I will make an issue of this once we pull.
Note that we do allow storage mass to convert to seed in certain grasses, it just doesn't disperse and mix at the site level.
re-running regression tests, after applying updates from @glemieux |
All expected PASS on the re-submission: |
110 year f10 simulation completed without issue: /glade/scratch/rgknox/fates-clm-tests/me-litt-v3-f10_f10_mg37 |
Description:
This changeset refactors the core FATES code to cycle multiple elements beyond carbon12. This mostly is represented in three pieces of memory, the litter, diagnostics used in writing history diagnostics and mass balance checking and accounting. These changes have significant impacts on how we process input and output boundary conditions to the model.
This changeset also adds rooting profile to the cohort structure (although I think it may be useful to have a converstation about this and how to reduce memory needs here).
Specifics:
FatesLitterMod.F90
global: element_list()
site_fluxdiags_type
site_massbal_type
This PR should be synchronized with CTSM PR: .
Collaborators:
@ckoven, Bill Riley, @jkshuman, @walkeranthonyp, Fates Modeling Team
Expectation of Answer Changes:
The results in this PR should give reasonably similar results to previous simulations. However, so much code has changed, that I do expect round-off errors to be large enough to prevent B4B comparisons from passing (however, they may).
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: