From 721ddd320a068a33909a3b2e3eb714fecdd96871 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Sun, 5 Nov 2017 19:57:10 +0100 Subject: [PATCH] Use 'const Number tolerance = ...' instead. --- tests/full_matrix/full_matrix_09.cc | 2 +- tests/multigrid/transfer_matrix_free_04.cc | 2 +- tests/multigrid/transfer_matrix_free_05.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/full_matrix/full_matrix_09.cc b/tests/full_matrix/full_matrix_09.cc index 77ececa4f1..16abbee1eb 100644 --- a/tests/full_matrix/full_matrix_09.cc +++ b/tests/full_matrix/full_matrix_09.cc @@ -41,7 +41,7 @@ void test() C.add(-1., E); - const double tolerance = 100*std::numeric_limits::epsilon(); + const Number tolerance = 100*std::numeric_limits::epsilon(); deallog << "Difference 1: " << filter_out_small_numbers(C.l1_norm(),tolerance) << std::endl; C = 0; diff --git a/tests/multigrid/transfer_matrix_free_04.cc b/tests/multigrid/transfer_matrix_free_04.cc index b1e92fa7ea..27114ecfd6 100644 --- a/tests/multigrid/transfer_matrix_free_04.cc +++ b/tests/multigrid/transfer_matrix_free_04.cc @@ -68,7 +68,7 @@ void check(const unsigned int fe_degree) MGTransferMatrixFree transfer; transfer.build(mgdof); - const double tolerance = 1000. * std::numeric_limits::epsilon(); + const Number tolerance = 1000. * std::numeric_limits::epsilon(); // check prolongation for all levels using random vector for (unsigned int level=1; level transfer; transfer.build(mgdof); - const double tolerance = 1000. * std::numeric_limits::epsilon(); + const Number tolerance = 1000. * std::numeric_limits::epsilon(); // check prolongation for all levels using random vector for (unsigned int level=1; level