]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test: lac/linear_operator_10: disable floating point exceptions 15470/head
authorMatthias Maier <maier@tamu.edu>
Sat, 24 Jun 2023 23:56:34 +0000 (18:56 -0500)
committerMatthias Maier <maier@tamu.edu>
Sat, 24 Jun 2023 23:58:02 +0000 (18:58 -0500)
tests/lac/linear_operator_10.cc

index a489fd7f141a65406e0fa2aad728a616eb58aab3..79263104b73751b72878941ca16ce6b55ca8af1a 100644 (file)
@@ -50,6 +50,16 @@ test_preconditioner(const MATRIX &         A,
                     const VECTOR &         b,
                     const ADDITIONAL_DATA &data = ADDITIONAL_DATA())
 {
+  // This test might trigger spurious floating point exceptions in Trilinos
+  // despite functioning properly. Simply disable floating point exceptions
+  // again (after they had been enabled int tests.h).
+#if defined(DEBUG) && defined(DEAL_II_HAVE_FP_EXCEPTIONS)
+  {
+    const int current_fe_except = fegetexcept();
+    fedisableexcept(current_fe_except);
+  }
+#endif
+
   const auto lo_A = linear_operator<VECTOR>(A);
   // Note: The above should be equivalent to the following:
   //

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.