Bugfix: Update time loop syntax
This commit is contained in:
parent
5aaf1f0bec
commit
29b8708cea
1 changed files with 8 additions and 2 deletions
|
@ -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"
|
||||
|
|
Reference in a new issue