From: Daniel Arndt Date: Tue, 19 Mar 2019 10:19:03 +0000 (+0100) Subject: Fix Tpetra test for std::fabs without std::complex overload X-Git-Tag: v9.1.0-rc1~276^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4df736333d9b07bb80bd757f2f98aa74a5a581b3;p=dealii.git Fix Tpetra test for std::fabs without std::complex overload --- diff --git a/tests/trilinos/tpetra_vector_02.cc b/tests/trilinos/tpetra_vector_02.cc index ff5bfc4f16..105e435c86 100644 --- a/tests/trilinos/tpetra_vector_02.cc +++ b/tests/trilinos/tpetra_vector_02.cc @@ -196,7 +196,7 @@ test() AssertThrow(b.l1_norm() == 95., ExcMessage("Problem in l1_norm.")); const double eps = 1e-6; - AssertThrow(std::fabs(b.l2_norm() - Number(31.3847096)) < eps, + AssertThrow(std::fabs(b.l2_norm() - 31.3847096) < eps, ExcMessage("Problem in l2_norm")); AssertThrow(b.linfty_norm() == 14., ExcMessage("Problem in linfty_norm."));