NOAA-GFDL / mkmf

Other
10 stars 51 forks source link

Catch floating point exceptions in debug build #6

Closed nichannah closed 6 years ago

nichannah commented 9 years ago

In issue NOAA-GFDL/MOM6#194 we discussed making floating point exceptions standard. Given that there may be a performance hit it would be better to do this only in debug builds.

This issue is to add:

-fpe0 (intel) -ffpe-trap=invalid,zero,overflow (gnu) - (pgi)

to the debug build in the machine *.mk files.

underwoo commented 9 years ago

@nicjhan, please fork and put in the fixes in the make template files as you would like them. Once done, please put in a pull request.

Once the pull request is in, I will complete the pull request.

underwoo commented 9 years ago

@nicjhan did MR #8 fix fully fix this issue?