diff --git a/src/istl-solver-playground.cc b/src/istl-solver-playground.cc index 6c8225d8297742b775d09911da0634df3fdffb62..de676b65cb55e5c55488c310e387f91fd97d965b 100644 --- a/src/istl-solver-playground.cc +++ b/src/istl-solver-playground.cc @@ -101,7 +101,11 @@ int main(int argc, char** argv){ } if(config.get("FP_EXCEPT", false)) +#if defined( __APPLE__ ) or defined( __MINGW32__ ) + DUNE_THROW(NotImplemented, "Floating exceptions handling are not available on this system"); +#else feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);// | FE_UNDERFLOW); +#endif int verbose = config.get("verbose", 1); if(mpihelper.rank() > 0)