From: wolf Date: Mon, 19 Nov 2001 14:47:59 +0000 (+0000) Subject: Take over changes 1.24->1.25. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21ffb87625ac20eee6462389e9cb20383f8a4cb9;p=dealii-svn.git Take over changes 1.24->1.25. git-svn-id: https://svn.dealii.org/branches/Branch-3-2@5213 0785d39b-7218-0410-832d-ea1e28bc413d --- 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; }