From ef740501dc13deb6bacee4ab8531764ead974ef9 Mon Sep 17 00:00:00 2001
From: Sanchi Vaishnavi <sanchi.vaishnavi@stud.uni-heidelberg.de>
Date: Wed, 27 Sep 2023 15:53:53 +0200
Subject: [PATCH] fix call to missing `feenableexcept` in
 istl-solver-playground

---
 src/istl-solver-playground.cc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/istl-solver-playground.cc b/src/istl-solver-playground.cc
index de676b65c..c8830e78c 100644
--- a/src/istl-solver-playground.cc
+++ b/src/istl-solver-playground.cc
@@ -101,11 +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
+     #if not defined( __APPLE__ ) and not defined( __MINGW32__ )
+       feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);// | FE_UNDERFLOW);
+     #else
+       feraiseexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);// | FE_UNDERFLOW);
+     #endif
 
   int verbose = config.get("verbose", 1);
   if(mpihelper.rank() > 0)
-- 
GitLab