check_state: check_state=False skips check of FABM state variables#72
Open
knutaros wants to merge 1 commit intogotm-model:masterfrom
Open
check_state: check_state=False skips check of FABM state variables#72knutaros wants to merge 1 commit intogotm-model:masterfrom
knutaros wants to merge 1 commit intogotm-model:masterfrom
Conversation
Contributor
|
I'm curious why you'd want to activate this new option. If BGC models specify lower or upper boundaries for their state variables, the idea is that the host+FABM then guarantee that the variable values are within these boundaries when the BGC routines are called. For some BGC models, the behaviour is ill defined if not, e.g. they can generate NaNs. Thus, I'd either check and repair, which is already activated with |
Contributor
Author
|
Dear Jorn,
I need a fast (hidden expert) switch to avoid the crashes due to
out-of-bounds values. Some thoughts:
1) We are using passive tracers for volume budgets and in this context
negative values are reasonable.
2) I agree, that a switch "continue_with_invalid_values" would be
better. I.e. instead of skipping check_state completely, just log
out-of-bound values but do not crash.
3) even better would be configurable minimum values during runtime,
instead of the hardcoded ones (in my case bb/passive).
Cheers, Knut
…On 10/9/25 09:37, Jorn Bruggeman wrote:
*jornbr* left a comment (gotm-model/code#72)
<#72 (comment)>
I'm curious why you'd want to activate this new option. If BGC models
specify lower or upper boundaries for their state variables, the idea
is that the host+FABM then /guarantee/ that the variable values are
within these boundaries when the BGC routines are called. For some BGC
models, the behaviour is ill defined if not, e.g. they can generate
NaNs. Thus, I'd either check and repair, which is already activated
with |repair_state|, or check and stop (if |repair_state| is off). Or
the BGC model could simply not register any lower or upper bounds.
Setting this new |check_state=False| seems likely to generate
hard-to-debug issues. What need does it serve?
—
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC2RV6TG2G4S5NNXIZIZSML3WYGC7AVCNFSM6AAAAACIVVLTZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOBUGU2DQNJRGA>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.