robintw / Py6S

A Python interface to the 6S Radiative Transfer Model
GNU Lesser General Public License v3.0
191 stars 105 forks source link

need to add -ffpe-summary=none to gfortran flags to prevent warning in 6S output #15

Closed vincentschut closed 8 years ago

vincentschut commented 9 years ago

If 6S is compiled (linux, debian testing, gfortran4.9) with the flags as in the Py6S documentation, sixs.test() fails because at the end of the 6S output a warning is printed: "Note: The following floating-point exceptions are signalling: IEEE_INVALID_FLAG". This can be suppressed by adding "-ffpe-summary=none" to the gfortran flags in the Makefile. When compiled with this flag, sixs.test() runs fine.

-> might be a good idea to update the documentation in the linux install section.

robintw commented 9 years ago

Thanks - this is very helpful. I've added it to the docs.

pbowyer commented 8 years ago

Just a note that this flag isn't present in gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04). I omitted it and the the program built without issue.

ernetas commented 8 years ago

:+1: for what @pbowyer said. The current docs version actually confused me on Ubuntu 14.04.