From: kronbichler Date: Mon, 5 May 2014 14:53:30 +0000 (+0000) Subject: Update test X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59fb4e8dd0fa69bf92478ee7a7fb449601166f88;p=dealii-svn.git Update test git-svn-id: https://svn.dealii.org/trunk@32888 0785d39b-7218-0410-832d-ea1e28bc413d --- 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