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: lac/linear_operator_10: disable floating point exceptions #15470

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/lac/linear_operator_10.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
//
Expand Down