-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jonbob/seaice/fix-ir-zero-check' (PR #5252)
Fix floating-point exception in MPASSI incremental remap code High-res (ne120pg2_r0125_oRRS18to6v3.WCYCL1950) B-case tests on summit using gnu have been failing with a floating-point exception that points to a line in the seaice incremental remap code: if (abs(massTracerProd) > 0.0_RKIND) then @whannah1 reported the issue and has found that the error occurs when massTracerProd is extremely small, so its inverse ends up being extremely large. He also found that it can be avoided by replacing the 0.0 with a tiny number. However, after discussion this PR fixes the issue by removing the reciprocal calculation and dividing by the mean0 (and massTracerProd) quantities instead -- @ambrad thank you for the suggestion. Fixes #5463 [non-BFB]
- Loading branch information
Showing
1 changed file
with
34 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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