From 78ad0c328d5a5aba31b3cd0d726c656be78b0eb0 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Mon, 6 Nov 2017 11:03:48 +0100 Subject: [PATCH] Filter out small float number in FullMatrix test. --- tests/full_matrix/full_matrix_53.output | 14 +++++++------- tests/full_matrix/full_matrix_common.h | 20 ++++++++++++-------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/tests/full_matrix/full_matrix_53.output b/tests/full_matrix/full_matrix_53.output index 72779c8a0c..dca760fd5f 100644 --- a/tests/full_matrix/full_matrix_53.output +++ b/tests/full_matrix/full_matrix_53.output @@ -31,7 +31,7 @@ DEAL::-0.11 0.11 DEAL::0.72 -0.22 DEAL::Identity = A*A_r_inv DEAL::2x2 matrix -DEAL::1.0 -2.2e-16 +DEAL::1.0 0.0 DEAL::0.0 1.0 DEAL:: DEAL::B matrix @@ -45,8 +45,8 @@ DEAL::-1.3 -0.33 0.67 DEAL::1.1 0.33 -0.42 DEAL::Identity = B_l_inv*B DEAL::2x2 matrix -DEAL::1.0 -1.7e-14 -DEAL::1.8e-15 1.0 +DEAL::1.0 0.0 +DEAL::0.0 1.0 DEAL::A matrix DEAL::1x2 matrix DEAL::1.0 2.0 @@ -79,8 +79,8 @@ DEAL::-0.11 0.11 DEAL::0.72 -0.22 DEAL::Identity = A*A_r_inv DEAL::2x2 matrix -DEAL::1.0 -1.2e-07 -DEAL::-9.5e-07 1.0 +DEAL::1.0 0.0 +DEAL::0.0 1.0 DEAL:: DEAL::B matrix DEAL::3x2 matrix @@ -93,5 +93,5 @@ DEAL::-1.3 -0.33 0.67 DEAL::1.1 0.33 -0.42 DEAL::Identity = B_l_inv*B DEAL::2x2 matrix -DEAL::1.0 9.1e-06 -DEAL::-9.5e-07 1.0 +DEAL::1.0 0.0 +DEAL::0.0 1.0 diff --git a/tests/full_matrix/full_matrix_common.h b/tests/full_matrix/full_matrix_common.h index e2c71f874f..c4b71a4fb5 100644 --- a/tests/full_matrix/full_matrix_common.h +++ b/tests/full_matrix/full_matrix_common.h @@ -80,10 +80,10 @@ template void print_matrix (const FullMatrix &m) { + const number tolerance = 100.*std::numeric_limits::epsilon(); for (unsigned int i=0; i void print_matrix (const FullMatrix > &m) { + const number tolerance = 100.*std::numeric_limits::epsilon(); for (unsigned int i=0; i void print_vector (const Vector &v) { + const typename numbers::NumberTraits::real_type tolerance + = 100.*std::numeric_limits::real_type>::epsilon(); for (unsigned int i=0; i void display_matrix(FullMatrix M) { + const number tolerance = 100.*std::numeric_limits::epsilon(); deallog< void display_matrix(FullMatrix > M) { + const number tolerance = 100.*std::numeric_limits::epsilon(); deallog<