Skip to content
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

Loosen tolerance on near-zero truncation of h2osoi_ice and h2osoi_liq #1980

Closed

Conversation

billsacks
Copy link
Member

Description of changes

In UpdateState_TopLayerFluxes, there is a somewhat arbitrary epsilon used to determine if h2osoi_ice and h2osoi_liq are close enough to zero that they should be truncated to zero. If the state remains negative after this truncation, we deem this to be a problem. It seems that this tolerance is occasionally exceeded, leading runs to abort. Since this tolerance is somewhat arbitrary, we will loosen it by an order of magnitude.

Note that, although the issue was only reported for h2osoi_ice, I am changing the tolerance for both liq and ice so they remain consistent.

Specific notes

Contributors other than yourself, if any: @olyson

CTSM Issues Fixed (include github issue #):
Resolves #1979

Are answers expected to change (and if so in what way)?
Yes, possible small answer changes due to the possibility that slightly non-zero states are now truncated to exactly zero.

Any User Interface Changes (namelist or namelist defaults changes)? No

Testing performed, if any: None yet

In UpdateState_TopLayerFluxes, there is a somewhat arbitrary epsilon
used to determine if h2osoi_ice and h2osoi_liq are close enough to zero
that they should be truncated to zero. If the state remains negative
after this truncation, we deem this to be a problem. It seems that this
tolerance is occasionally exceeded, leading runs to abort. Since this
tolerance is somewhat arbitrary, we will loosen it by an order of
magnitude.

Resolves ESCOMP#1979

Note that, although the issue was only reported for h2osoi_ice, I am
changing the tolerance for both liq and ice so they remain consistent.
@billsacks billsacks self-assigned this Apr 2, 2023
@billsacks billsacks added next this should get some attention in the next week or two. Normally each Thursday SE meeting. PR status: ready PR: this is ready to merge in, with all tests satisfactory and reviews complete labels Apr 2, 2023
@billsacks
Copy link
Member Author

Closing this because I'm going to go with a more robust fix.

@billsacks billsacks closed this Apr 7, 2023
@billsacks billsacks deleted the loosen_truncation_tolerance branch April 7, 2023 22:31
@samsrabin samsrabin removed the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR status: ready PR: this is ready to merge in, with all tests satisfactory and reviews complete
Projects
Status: Done (non release/external)
Development

Successfully merging this pull request may close these issues.

Need some changes to avoid negative h2osoi_ice in UpdateState_TopLayerFluxes
2 participants