chtMultiRegionSimpleFoam::checkResidualControls: Write results and end run at convergence

Patch contributed by Tobias Holzmann
Resolves bug-report https://bugs.openfoam.org/view.php?id=2720
This commit is contained in:
Henry Weller
2017-10-13 14:38:20 +01:00
parent 2d5af005e5
commit 65e6081e23

View File

@ -63,6 +63,6 @@ else if (runTime.run() && resControlUsed && allRegionsConverged)
Info<< "\nRegions converged after " << runTime.timeName()
<< " iterations" << endl;
// Leave SIMPLE loop
break;
// Save converged time step and end the run
runTime.writeAndEnd();
}