]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid floating point exception in symengine_number_type_01 7917/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 12 Apr 2019 11:51:10 +0000 (13:51 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 12 Apr 2019 11:51:10 +0000 (13:51 +0200)
tests/symengine/symengine_number_type_01.cc

index 4b26361e1f57f7670269570b296c838e627eac30..d67bf54cb7c083717645a38a1223f8d3f334bfe5 100644 (file)
@@ -1125,6 +1125,10 @@ main()
 
       // No condition is met
       {
+#if defined(DEAL_II_HAVE_FP_EXCEPTIONS)
+        fedisableexcept(FE_INVALID);
+#endif
+
         const double                x_val = -1.0;
         SD::types::substitution_map sub_map;
         sub_map[x]               = SD_number_t(x_val);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.