]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Better test output
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 29 Oct 2013 11:55:22 +0000 (11:55 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 29 Oct 2013 11:55:22 +0000 (11:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@31480 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/precondition_chebyshev_01.cc
tests/lac/precondition_chebyshev_01.output

index 215456ab5965d40ae4479aa798c7c4ac5344d587..db631ae9eae7dd4df78a1508c67b5e7709ed3eec 100644 (file)
@@ -64,6 +64,11 @@ check()
   data.degree = 3;
   prec.initialize(m, data);
 
+  deallog << "Exact inverse:     ";
+  for (unsigned int i=0; i<size; ++i)
+    deallog << in(i)/m(i,i) << " ";
+  deallog << std::endl;
+
   deallog << "Check  vmult orig: ";
   prec.vmult(out, in);
   for (unsigned int i=0; i<size; ++i)
@@ -100,7 +105,7 @@ int main()
 {
   std::ofstream logfile("output");
   deallog << std::fixed;
-  deallog << std::setprecision(0);
+  deallog << std::setprecision(2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index 3fcd6464ae5dd7b724b7064fe0d635729d6603fe..981a24f709936088f27aa22d2a73bac376124775 100644 (file)
@@ -1,5 +1,6 @@
 
-DEAL::Check  vmult orig: 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 
-DEAL::Check Tvmult orig: 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 
-DEAL::Check  vmult diag: 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 
-DEAL::Check Tvmult diag: 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 
+DEAL::Exact inverse:     0.84 0.20 0.26 0.20 0.18 0.03 0.05 0.10 0.03 0.06 
+DEAL::Check  vmult orig: 1.09 0.26 0.34 0.26 0.24 0.04 0.06 0.12 0.04 0.07 
+DEAL::Check Tvmult orig: 1.09 0.26 0.34 0.26 0.24 0.04 0.06 0.12 0.04 0.07 
+DEAL::Check  vmult diag: 0.82 0.26 0.33 0.21 0.15 0.02 0.03 0.09 0.03 0.07 
+DEAL::Check Tvmult diag: 0.82 0.26 0.33 0.21 0.15 0.02 0.03 0.09 0.03 0.07 

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.