Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Change totalVolumeChange from ==0 to <= 1e-12 #1325

Conversation

mark-petersen
Copy link
Contributor

@mark-petersen mark-petersen commented May 11, 2017

This fixes a floating invalid error that occurs on cori-knl intel. The
totalVolumeChange may be a very small value, i.e. 1e-100, because it is
computed as a difference:
totalVolumeChange = currentVolume - sums(variableIndex)
In the current code, it does not equal zero exactly, but still
produces a floating invalid when dividing.

This fixes a floating invalid error that occurs on cori-knl intel.  The
totalVolumeChange may be a very small value, i.e. 1e-100, because it is
computed as a difference:
  totalVolumeChange = currentVolume - sums(variableIndex)
In the previous version, it does not equal zero exactly, but still
produces a floating invalid when dividing.
@mark-petersen
Copy link
Contributor Author

This fixes the second error described in
E3SM-Project/E3SM#1309

@mark-petersen mark-petersen requested a review from jonbob May 11, 2017 21:52
@mark-petersen
Copy link
Contributor Author

@jonbob Please take a quick look. I would like to include this in the batch of analysis debug fixes today. It is a reported bug by nkeen on cori-knl. I am testing on MPAS stand-alone and in ACME with SMS_D_PS.ne30_oEC.A_WCYCL2000.edison_intel, so you don't need to test it here.

@jonbob
Copy link
Contributor

jonbob commented May 11, 2017

@mark-petersen - I won't have time to review it today, since I have a couple of critical runs to get in before leaving for the day. As long as you've tested this in ACME, I'm OK with it. But if you're not confident for any reason, please don't include it and we'll bring it in separately

@mark-petersen
Copy link
Contributor Author

This passed MPAS-O nightly regression suite with gnu (bfb with previous), and ACME tests: SMS_D_PS.ne30_oEC.A_WCYCL2000.edison_intel, PEM_D_Ln9_PMx1.ne4_oQU240.A_WCYCL2000.edison_intel

@mark-petersen mark-petersen merged commit 3a99bcb into MPAS-Dev:ocean/develop May 12, 2017
@mark-petersen mark-petersen deleted the ocean/fix_totalVolumeChange_globalStats branch May 12, 2017 12:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants