]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
logging of coefficients moved to proper place
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Jun 2001 19:23:25 +0000 (19:23 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Jun 2001 19:23:25 +0000 (19:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@4744 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/solver_cg.h

index c4f4479640a5ac91db4a5d23f16e60a7d8277ae3..df95f6aa67a92f27d2b4a6a919ea54751bbd689a 100644 (file)
@@ -256,9 +256,6 @@ SolverCG<VECTOR>::solve (const MATRIX &A,
 
       print_vectors(it, x, g, d);
       
-      if (additional_data.log_coefficients)
-       deallog << "alpha-beta:" << alpha << '\t' << beta << std::endl;
-      
       conv = control().check(it,res);
       if (conv)
        break;
@@ -269,6 +266,9 @@ SolverCG<VECTOR>::solve (const MATRIX &A,
       gh   = g*h;
       beta = gh/beta;
       
+      if (additional_data.log_coefficients)
+       deallog << "alpha-beta:" << alpha << '\t' << beta << std::endl;
+      
       d.sadd(beta,-1.,h);
     };
 

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.