-
Notifications
You must be signed in to change notification settings - Fork 374
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
Fixes the annual C budget in ELM #6405
Conversation
The C-states for all budgets (daily/monthly/annual/instantaneous/all time) are updated on the first ELM step. Fixes #6337 [BFB]
d1a7353
to
9f14bdc
Compare
@bishtgautam, let's take this chance to add a testmod for this specific case? |
|
@mahf708 I found a bit of incorrect computation, but it doesn't cause an error because the computation is done correctly later in the code. I'm going to remove the incorrect computation in this PR itself. I will also update the water budget to be consistent with the C budget changes. Then, I will follow your suggestion and add a new test. |
The code was incorrectly setting the beginning of month C values to be equal to the C values at the end of ELM time step.
Sounds good, let me know if I can be of any help :) |
The test starts on 0001-12-28 and runs till (0002-01-01). Thus, it computes monthly, annual, and all_time budgets.
components/elm/cime_config/testdefs/testmods_dirs/elm/cbudget/user_nl_elm
Outdated
Show resolved
Hide resolved
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.
This looks good to me and it solves the issues it was designed to address. I think we will add a restart-style test (e.g., ERS) instead of SMS here, and we can later have this in the standard test suite. Thanks @bishtgautam for the quick fix!
The C-states for all budgets (daily/monthly/annual/instantaneous/all time) are updated on the first ELM step. Adds a 5-day SMS test that starts on 0001-12-28 and runs till 0002-01-01. Fixes #6337 [non-BFB] for tests greater than a year with C budgets.
Merged to next. Expecting these DIFFs in the TCS and TWS variables
|
Merged to master. Still need to wait for pm-cpu_gnu to report |
@bishtgautam I'm not clear on how to explain the bug and the fix. Annual carbon budgets were zeroed if a run started in the middle of a year? And now they are not? |
@rljacob How about the following description? The initialization of the carbon budget in ELM is fixed to allow for the case when the model starts mid-month. |
are updated on the first ELM step.
Fixes #6337
[non-BFB] for tests greater than a year with budgets.