From: Daniel Arndt Date: Fri, 12 Apr 2019 11:51:10 +0000 (+0200) Subject: Avoid floating point exception in symengine_number_type_01 X-Git-Tag: v9.1.0-rc1~204^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9929cda885091f83176c67c214f8be325263fc47;p=dealii.git Avoid floating point exception in symengine_number_type_01 --- 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);