-
Notifications
You must be signed in to change notification settings - Fork 97
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
Use safer default min_thickness = 1.0e-3 #303
Conversation
@russfiedler I've pinged you on this just so you can confirm this will have no unintended consequences. Seems harmless enough, but thought it good to check. |
It may change users' high vertical resolution grids if they are poorly specified and rely on the old defaults. New experiments will be fine but starting from existing restarts may have problems since the code as it stands does not do what is intended and may have produced a corrupted |
So arguably it is a big fix that may break some existing restarts? Is there a work-around in those cases? |
The user can set the value in the namelist. |
In which case, I reckon we should just make this change. |
If this change breaks runs from old restarts, will it appear to run OK or will runs fail so users know there is a problem? |
The |
If there is a crash for new runs due to changes in default, then we need to tell users (via error message) what they should set to accord with the prior defaults. Setting a "valid min_thickness" begs the question what is valid and what was the setting prior to the hard error. |
Sorry, I merged this PR before @StephenGriffies had a chance to comment. I'm happy to submit another PR with Steve's suggestions, or @russfiedler can knock something up. If I'm to do it, I'd appreciate some help in terms of where this error message should go in the code and what criteria to use to diagnose this issue. |
how does this look? #309 |
I'd add that for floating point representation reasons |
ok thanks @russfiedler, I'll add that. |
|
…te only if it needs to be specified; see COSIMA/access-om2#161 and #303
did you mean something like this? https://github.com/mom-ocean/MOM5/pull/309/files |
Be careful with the length of the error message. I think it's limited to 512 characters. |
ok I've now reduced the messages to under 512 chars |
Any objections to me merging the updated PR #309 into master? Note that this will break old configs (by design), as it now requires As explained in the error message, old configs should set |
see COSIMA/access-om2#161