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
This commit is contained in:
Henry Weller
2016-05-25 16:58:28 +01:00
parent 1de91282cd
commit 6463192261

View File

@ -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