]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add filter-to-zero to another full matrix test.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 5 Nov 2017 18:48:52 +0000 (19:48 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 5 Nov 2017 18:48:52 +0000 (19:48 +0100)
tests/full_matrix/full_matrix_11.cc

index 3d57c2fca504bb186e5de8d4a2030df91cb2a82f..cc19927d9ad400437cfd3178facd98bd434e92c9 100644 (file)
@@ -41,7 +41,9 @@ void test()
         D(i,j) += A(k,i) * B(k,j);
   C.add(-1., D);
 
-  deallog << "Difference: " << (double)C.l1_norm() << std::endl;
+  deallog << "Difference: " << filter_out_small_numbers(C.l1_norm(),
+                                                        100.*std::numeric_limits<Number>::epsilon())
+          << std::endl;
 }
 
 int main()

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.