Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test cgal/cgal_remesh_surface: disable floating point exceptions #15466

Merged
merged 1 commit into from
Jun 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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