]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Take over changes 1.24->1.25.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Nov 2001 14:47:59 +0000 (14:47 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Nov 2001 14:47:59 +0000 (14:47 +0000)
git-svn-id: https://svn.dealii.org/branches/Branch-3-2@5213 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/solver_control.cc

index 828febbd7982c44657ca53712e217c56d7b8b64b..d6e4f8cae98964738de40cd75f845d557f488ee0 100644 (file)
@@ -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;
 }

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.