-
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
Don't zero out patch%fuel%frac_burnt()
before we use it
#1302
Conversation
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 like moving the check into TransLitterNewPatch
. That said, do we need to make sure that currentPatch%fuel%frac_burnt
is set to zero at the end of spawn_patches
or is that already handled elsewhere?
I added it to the top of the |
Regression testing on |
Regression testing agsinst
Spot checking the DIFFs, I think these make sense; I'm seeing changes to fire related history. @adrifoster would you take a look when you have a chance to confirm please? Results: |
@glemieux thanks! yep these look right to me, just to plot some differences: which does affect ROS and fire intensity: the new version is lower because fuel is actually lower: |
Thanks @adrifoster! |
Fixes #1301 by checking inside the
TransLitterNewPatch
for the type of disturbance instead of zero-ing outside of the subroutine.Description:
Removed the lines in
spawn_patches
that zero-d thefrac_burnt
array too soon.Added checks in
TransLitterNewPatch
to check for fire disturbance and a fire on the patch:If no fire, new local variable
frac_burnt
set to 0.0, otherwise usepatch%fuel%frac_burnt
Collaborators:
@glemieux
Expectation of Answer Changes:
Yes - should change answers because before we weren't burning any fuel
Checklist
Contributor
Integrator
Test Results:
CTSM (or) E3SM (specify which) test hash-tag:
ctsm5.3.012
CTSM (or) E3SM (specify which) baseline hash-tag:
ctsm5.3.012
FATES baseline hash-tag:
sci.1.80.4_api.37.0.0
Test Output:
Running tests now