-
Notifications
You must be signed in to change notification settings - Fork 133
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
fix mechred exp underflows #169
Conversation
Testing on travis now with bgc tests on, will remove if they still fail. |
If the bgc tests fail in this PR I will look into how we can mark them as "allowed_failures". That means they are invoked with every build but never cause it to fail. Edit: Well, that was easy. |
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.
This looks fine to me.
Excellent, bgc tests pass now on travis. Have confirmed manually in the travis log. Also, just ran "thermo1" tests on gordon vs 16f0046 (defaultsets branch) and answers have changed. It looks like it's just the icefree slab cases and changes look small, initial diff, for example in icefree case is,
|
It makes sense that this would show up in the icefree initial condition, since the ice is thin there (and so will be more susceptible to ridging). I'll do a quick gx3 run to make sure nothing unexpected happens, but this looks good to me. |
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.
Looks good. A more general question is about underflows in CICE in the dynamics. Can we not add compiler options to flush underflows?
We generally do flush to zero in non-debug mode. This is only with debugging turned on. Also, the compiler option to underflow to zero can sometimes be expensive, although I'm not sure if that is still true. It's also important to understand where these are coming up and decide whether they are physically reasonable or not. So I'm happy to trap them and explicitly fix them. On a separate note, the way we handle the underflows is not consistent throughout the code. We should revisit that. In particular, the exp_argmax value varies across the code. |
fix mechred exp underflows, add back bgc tests to travis
Developer(s): tcraig
Are the code changes bit for bit, different at roundoff level, or more substantial? bfb except ridging results might change
Is the documentation being updated with this PR? (Y/N) N
If not, does the documentation need to be updated separately? (Y/N) N
Other Relevant Details: