]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Update test
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 May 2014 14:53:30 +0000 (14:53 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 May 2014 14:53:30 +0000 (14:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@32888 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/vectorization_03.cc
tests/base/vectorization_03.output

index 82936aae7cb8dd47903a66177ad4fe05e67d3209..4a2db9f0c2ca99123c6e5e5ed1603f68363fb89a 100644 (file)
@@ -84,9 +84,10 @@ void test()
 
   vector *= 2.*current.get_value(0)[0];
 
+  double error = 0;
   for (unsigned int v=0; v<VectorizedArray<double>::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;
 }
 
 
index c18e43299f25a2a03aa5a3cdb97242b5db5c9ee1..f49ae07cfab72c3a641d5fb9cad2d3c3c548a710 100644 (file)
@@ -1,2 +1,2 @@
 
-DEAL::0 0 
+DEAL::error: 0

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.