From 6463192261a0fa0db88c8d36a53641758e6fbb5e Mon Sep 17 00:00:00 2001
From: Henry Weller <http://cfd.direct>
Date: Wed, 25 May 2016 16:58:28 +0100
Subject: [PATCH] simpleControl: Change the number of steps printed to be
 relative to the current time (for restarts) rather than 0 Resolves
 feature-request http://bugs.openfoam.org/view.php?id=2096

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

diff --git a/src/finiteVolume/cfdTools/general/solutionControl/simpleControl/simpleControl.C b/src/finiteVolume/cfdTools/general/solutionControl/simpleControl/simpleControl.C
index 1dc99386813..3724e38ea42 100644
--- a/src/finiteVolume/cfdTools/general/solutionControl/simpleControl/simpleControl.C
+++ b/src/finiteVolume/cfdTools/general/solutionControl/simpleControl/simpleControl.C
@@ -97,7 +97,8 @@ Foam::simpleControl::simpleControl(fvMesh& mesh)
     if (residualControl_.empty())
     {
         Info<< algorithmName_ << ": no convergence criteria found. "
-            << "Calculations will run for " << mesh_.time().endTime().value()
+            << "Calculations will run for "
+            << mesh_.time().endTime().value() - mesh_.time().startTime().value()
             << " steps." << nl << endl;
     }
     else
-- 
GitLab