1 #ifndef FE_DISABLE_EXCEPTION_H 2 #define FE_DISABLE_EXCEPTION_H 27 #ifdef HAVE_FEENABLEEXCEPT 28 fegetexceptflag(&initial_flag, FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
29 initial_trap = fedisableexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
34 #ifdef HAVE_FEENABLEEXCEPT 35 feclearexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
36 fesetexceptflag(&initial_flag, FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
37 feenableexcept(initial_trap);
41 fexcept_t initial_flag;
To detect things like divide by zero, we may turn on floating point exceptions.
Contains classes to abstract away details in various Spurr Radiative Transfer software.