Skip to content

Commit

Permalink
Merge pull request #15470 from tamiko/fix_la_test
Browse files Browse the repository at this point in the history
Test: lac/linear_operator_10: disable floating point exceptions
  • Loading branch information
tamiko committed Jun 25, 2023
2 parents 130e585 + 2a86ae9 commit ab43356
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit ab43356

Please sign in to comment.