]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix Tpetra test for std::fabs without std::complex overload 7827/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 19 Mar 2019 10:19:03 +0000 (11:19 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 19 Mar 2019 10:19:03 +0000 (11:19 +0100)
tests/trilinos/tpetra_vector_02.cc

index ff5bfc4f16fb16ad04499df27e0ba3c5125c4c62..105e435c860538cd3098015b846ee2f9925d3b0a 100644 (file)
@@ -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."));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.