From 371d21c243a8fbed881f8d3117f60ca7bab0e874 Mon Sep 17 00:00:00 2001 From: guido Date: Tue, 5 Jun 2001 19:23:25 +0000 Subject: [PATCH] logging of coefficients moved to proper place git-svn-id: https://svn.dealii.org/trunk@4744 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/solver_cg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/lac/include/lac/solver_cg.h b/deal.II/lac/include/lac/solver_cg.h index c4f4479640..df95f6aa67 100644 --- a/deal.II/lac/include/lac/solver_cg.h +++ b/deal.II/lac/include/lac/solver_cg.h @@ -256,9 +256,6 @@ SolverCG::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::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); }; -- 2.39.5