From 9929cda885091f83176c67c214f8be325263fc47 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 12 Apr 2019 13:51:10 +0200 Subject: [PATCH] Avoid floating point exception in symengine_number_type_01 --- tests/symengine/symengine_number_type_01.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/symengine/symengine_number_type_01.cc b/tests/symengine/symengine_number_type_01.cc index 4b26361e1f..d67bf54cb7 100644 --- a/tests/symengine/symengine_number_type_01.cc +++ b/tests/symengine/symengine_number_type_01.cc @@ -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); -- 2.39.5