Make sure to define state_vector
if not in land use mode
#1223
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:
This is a bug fix for #1221 which came in with the latest tag
sci.1.77.0_api.36.0.0
. The local variablestate_vector
is undefined indisturbance_rates
if land use mode is off. To avoid indexing into an array ofNaN
we need to define values forstate_vector
. The fix proposed here is to set it by getting the current state vector, which is called at the top of the subroutine.Collaborators:
Expectation of Answer Changes:
Answer changes are not expected
Checklist
If this is your first time contributing, please read the CONTRIBUTING document.
All checklist items must be checked to enable merging this pull request:
Contributor
Integrator
Documentation
Test Results:
CTSM (or) E3SM (specify which) test hash-tag:
12c60f3de477bbdaa2cf7a8afe0d089886d2c960
CTSM (or) E3SM (specify which) baseline hash-tag:
12c60f3de477bbdaa2cf7a8afe0d089886d2c960
FATES baseline hash-tag:
sci.1.77.0_api.36.0.0
Test Output: TBD