]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test cgal/cgal_remesh_surface: disable floating point exceptions 15466/head
authorMatthias Maier <maier@tamu.edu>
Sat, 24 Jun 2023 23:03:00 +0000 (18:03 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 24 Jun 2023 23:38:52 +0000 (18:38 -0500)
tests/cgal/cgal_remesh_surface.cc

index 6a1a8426dc4a72bcdf007e47a65b7661077a3609..f8fd8b543615d20d463ecc6767547b588ddb24f9 100644 (file)
@@ -40,6 +40,16 @@ template <int dim, int spacedim>
 void
 test()
 {
+  // This test might trigger spurious floating point exception 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
+
   deallog << "dim= " << dim << ",\t spacedim= " << spacedim << std::endl;
 
   Triangulation<spacedim> tria0, tria1;

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.