From 8ab6b4df2c1264b5dfc1ac0ea00da63d57e73e08 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sun, 29 May 2016 22:26:53 +0100 Subject: [PATCH] buoyantBoussinesqPimpleFoam: Corrected handling of time-step adjustment Resolves bug-report http://bugs.openfoam.org/view.php?id=2104 --- .../buoyantBoussinesqPimpleFoam.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/buoyantBoussinesqPimpleFoam.C b/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/buoyantBoussinesqPimpleFoam.C index e082648b75..f05ee42b30 100644 --- a/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/buoyantBoussinesqPimpleFoam.C +++ b/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/buoyantBoussinesqPimpleFoam.C @@ -75,14 +75,16 @@ int main(int argc, char *argv[]) Info<< "\nStarting time loop\n" << endl; - while (runTime.loop()) + while (runTime.run()) { - Info<< "Time = " << runTime.timeName() << nl << endl; - #include "readTimeControls.H" #include "CourantNo.H" #include "setDeltaT.H" + runTime++; + + Info<< "Time = " << runTime.timeName() << nl << endl; + // --- Pressure-velocity PIMPLE corrector loop while (pimple.loop()) {