edoddridge / aronnax

An idealised isopycnal model that can be run either with n+1/2 layers, or with n layers and variable bathymetry.
http://aronnax.readthedocs.io/en/latest/
MIT License
24 stars 6 forks source link

Manually confirm that optimization settings do not have significant effects on results #29

Closed axch closed 7 years ago

axch commented 7 years ago

If I change output_preservation_test.py to compile the MIM core with -O1 or -O2 rather than -Ofast, two undesirable things happen:

The former of these is Issue #28, and is certainly more urgent; this ticket is about confirming that the disagreements are small, and caused by liberties gfortran -Ofast takes with the IEEE 64-bit floating point standard. Presumably the mechanism for doing that would be implementing the first option outlined in Issue #27.

axch commented 7 years ago

PR #35 permits one to easily manually check whether a different compiler option produces results that are too far from the known-good ones.

Down-scoped this issue to the manual part so it can be closed, and filed full-scope automatic platform-induced discrepancy testing as #36.