Skip to content
Snippets Groups Projects
Verified Commit 02caaf9c authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Guard floating point exceptions on playground

parent 7077d22e
No related branches found
No related tags found
1 merge request!541Resolve "Building istl-solver-playground causes compile time error"
Pipeline #65037 passed
......@@ -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)
......
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