From 59fb4e8dd0fa69bf92478ee7a7fb449601166f88 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Mon, 5 May 2014 14:53:30 +0000 Subject: [PATCH] Update test git-svn-id: https://svn.dealii.org/trunk@32888 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/vectorization_03.cc | 5 +++-- tests/base/vectorization_03.output | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/base/vectorization_03.cc b/tests/base/vectorization_03.cc index 82936aae7c..4a2db9f0c2 100644 --- a/tests/base/vectorization_03.cc +++ b/tests/base/vectorization_03.cc @@ -84,9 +84,10 @@ void test() vector *= 2.*current.get_value(0)[0]; + double error = 0; for (unsigned int v=0; v::n_array_elements; ++v) - deallog << current.get_value(0)[v]/(current.cartesian_weight[v]*current.jac_weight[0][0])-(2.*vec[v]-ol[v]-weight[v]*std::sin(vec[v]) + std::cos(ol[v])) << " "; - deallog << std::endl; + error += std::abs(current.get_value(0)[v]/(current.cartesian_weight[v]*current.jac_weight[0][0])-(2.*vec[v]-ol[v]-weight[v]*std::sin(vec[v]))); + deallog << "error: " << error << std::endl; } diff --git a/tests/base/vectorization_03.output b/tests/base/vectorization_03.output index c18e43299f..f49ae07cfa 100644 --- a/tests/base/vectorization_03.output +++ b/tests/base/vectorization_03.output @@ -1,2 +1,2 @@ -DEAL::0 0 +DEAL::error: 0 -- 2.39.5