From efadefb7092554809382e8a5b8c39f03ba5b6940 Mon Sep 17 00:00:00 2001
From: andy <andy>
Date: Fri, 23 Dec 2011 09:19:36 +0000
Subject: [PATCH] BUG: Pimple corrector loop counter not re-initialised on
 criteria satisfied - mantis #371

---
 .../general/solutionControl/pimpleControl/pimpleControl.C      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/finiteVolume/cfdTools/general/solutionControl/pimpleControl/pimpleControl.C b/src/finiteVolume/cfdTools/general/solutionControl/pimpleControl/pimpleControl.C
index 98a742e16bf..7ff31db0eca 100644
--- a/src/finiteVolume/cfdTools/general/solutionControl/pimpleControl/pimpleControl.C
+++ b/src/finiteVolume/cfdTools/general/solutionControl/pimpleControl/pimpleControl.C
@@ -196,9 +196,10 @@ bool Foam::pimpleControl::loop()
     bool completed = false;
     if (criteriaSatisfied())
     {
-        Info<< algorithmName_ << ": converged in " << corr_ << " iterations"
+        Info<< algorithmName_ << ": converged in " << corr_ - 1 << " iterations"
             << endl;
         completed = true;
+        corr_ = 0;
     }
     else
     {
-- 
GitLab