Skip to content

Commit

Permalink
Test cgal/cgal_remesh_surface: disable floating point exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tamiko committed Jun 24, 2023
1 parent c934630 commit 3f9e7e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/cgal/cgal_remesh_surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3f9e7e2

Please sign in to comment.