Skip to content
Snippets Groups Projects
Commit ef740501 authored by Sanchi Vaishnavi's avatar Sanchi Vaishnavi Committed by Markus Blatt
Browse files

fix call to missing `feenableexcept` in istl-solver-playground

parent 6a8d573f
No related branches found
No related tags found
1 merge request!549Use feraiseexcept on windows and mac for floating point exceptions
...@@ -101,11 +101,11 @@ int main(int argc, char** argv){ ...@@ -101,11 +101,11 @@ int main(int argc, char** argv){
} }
if(config.get("FP_EXCEPT", false)) if(config.get("FP_EXCEPT", false))
#if defined( __APPLE__ ) or defined( __MINGW32__ ) #if not defined( __APPLE__ ) and not defined( __MINGW32__ )
DUNE_THROW(NotImplemented, "Floating exceptions handling are not available on this system"); feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);// | FE_UNDERFLOW);
#else #else
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);// | FE_UNDERFLOW); feraiseexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);// | FE_UNDERFLOW);
#endif #endif
int verbose = config.get("verbose", 1); int verbose = config.get("verbose", 1);
if(mpihelper.rank() > 0) if(mpihelper.rank() > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment