]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use 'const Number tolerance = ...' instead. 5403/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 5 Nov 2017 18:57:10 +0000 (19:57 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 5 Nov 2017 18:57:10 +0000 (19:57 +0100)
tests/full_matrix/full_matrix_09.cc
tests/multigrid/transfer_matrix_free_04.cc
tests/multigrid/transfer_matrix_free_05.cc

index 77ececa4f145111515bff3092d0db406280a15be..16abbee1eb22a0e835a2632a3692f517273580a6 100644 (file)
@@ -41,7 +41,7 @@ void test()
 
   C.add(-1., E);
 
-  const double tolerance = 100*std::numeric_limits<Number>::epsilon();
+  const Number tolerance = 100*std::numeric_limits<Number>::epsilon();
   deallog << "Difference 1: " << filter_out_small_numbers(C.l1_norm(),tolerance) << std::endl;
 
   C = 0;
index b1e92fa7ea082cbf5218eb0dffb17fcd451ce20b..27114ecfd6d02bc81a61058a9cbbf8035f1fe223 100644 (file)
@@ -68,7 +68,7 @@ void check(const unsigned int fe_degree)
       MGTransferMatrixFree<dim, Number> transfer;
       transfer.build(mgdof);
 
-      const double tolerance = 1000. * std::numeric_limits<Number>::epsilon();
+      const Number tolerance = 1000. * std::numeric_limits<Number>::epsilon();
 
       // check prolongation for all levels using random vector
       for (unsigned int level=1; level<mgdof.get_triangulation().n_global_levels(); ++level)
index b994f49376439c5113e6a2c307aed48befb98621..cb2cd01a009092d2fb10415394dc1df75767628f 100644 (file)
@@ -87,7 +87,7 @@ void check(const unsigned int fe_degree)
       MGTransferMatrixFree<dim, Number> transfer;
       transfer.build(mgdof);
 
-      const double tolerance = 1000. * std::numeric_limits<Number>::epsilon();
+      const Number tolerance = 1000. * std::numeric_limits<Number>::epsilon();
 
       // check prolongation for all levels using random vector
       for (unsigned int level=1; level<mgdof.get_triangulation().n_global_levels(); ++level)

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.