-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add negative soil moisture check and adjustment to SSTEP #644
Conversation
…inanjiang module. For consistency using 0.01mm minimum threshold to match current SOILWATER routine check - worth rethinking this value in the future.
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 have read through the code changes, and all seems logical to me. I do not see any issue with the current implementation.
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.
LGTM! Still putting together unit test to try to simulate negative soil moisture to test this use case but I trust the testing Aubrey did 👍
PR passes new unit tests and functions as expected 😄 |
Just adding that while I have not specifically tested this, it does look like there is an existing check for negative subsurface runoff in Land_models/NoahMP/phys/module_sf_noahmpdrv.F: |
TYPE: enhancement?
KEYWORDS: NoahMP, soil moisture
SOURCE: Aubrey D, NCAR
DESCRIPTION OF CHANGES:
The new Xinanjiang infiltration scheme triggers NaNs when the top 2 soil layers show a negative net soil moisture. There is a catch for this negative soil moisture condition at the end of the SOILWATER routine, but this happens after the Xinanjiang module is called within the infiltration iterative loop. To avoid NaNs, we added a duplicate check and adjustment (move water from lower layer to fill deficit in upper layer) into the SSTEP solver right after the oversaturation check. For consistency with current solution, we maintain the 0.01mm minimum soil water threshold implemented in the SOILWATER adjustment, however for future development we may want to consider SMCDRY or another fractional soil moisture based threshold.
There will be answer changes.
ISSUE: Fixes #645
TESTS CONDUCTED:
Checklist
Merging the PR depends on following checklist being completed. Add
X
between each of the squarebrackets if they are completed in the PR itself. If a bullet is not relevant to you, please comment
on why below the bullet.
NEWS.md