From 21ffb87625ac20eee6462389e9cb20383f8a4cb9 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 19 Nov 2001 14:47:59 +0000 Subject: [PATCH] Take over changes 1.24->1.25. git-svn-id: https://svn.dealii.org/branches/Branch-3-2@5213 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/solver_control.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/deal.II/lac/source/solver_control.cc b/deal.II/lac/source/solver_control.cc index 828febbd79..d6e4f8cae9 100644 --- a/deal.II/lac/source/solver_control.cc +++ b/deal.II/lac/source/solver_control.cc @@ -101,6 +101,14 @@ SolverControl::check (const unsigned int step, deallog << "Starting value " << check_value << std::endl; } + if (check_value <= tol) + { + if (m_log_result) + deallog << "Convergence step " << step + << " value " << check_value << std::endl; + lcheck = success; + return success; + } if ((step >= maxsteps) || #ifdef HAVE_ISNAN @@ -122,14 +130,6 @@ SolverControl::check (const unsigned int step, return failure; } - if (check_value <= tol) - { - if (m_log_result) - deallog << "Convergence step " << step - << " value " << check_value << std::endl; - lcheck = success; - return success; - } lcheck = iterate; return iterate; } -- 2.39.5