Bugfix: Update time loop syntax

This commit is contained in:
Hrvoje Jasak 2017-03-30 10:34:10 +01:00
parent 5aaf1f0bec
commit 29b8708cea

View file

@ -56,9 +56,13 @@ int main(int argc, char *argv[])
Info << "\nStarting time loop\n" << endl;
for (runTime++; !runTime.end(); runTime++)
while (runTime.run())
{
Info << "Time = " << runTime.value() << endl << endl;
# include "readTimeControls.H"
# include "CourantNo.H"
# include "setSurfaceStabilityDeltaT.H"
# include "readPISOControls.H"
interface.moveMeshPointsForOldFreeSurfDisplacement();
@ -116,6 +120,8 @@ int main(int argc, char *argv[])
{
phi -= pEqn.flux();
}
p.relax();
}
# include "continuityErrs.H"