Added Time::loop() to allow the

while(runTime.loop())
{
...
}

idiom.

Demonstrated in the shallowWaterFoam solver.
This commit is contained in:
henry
2009-02-17 22:00:59 +00:00
parent fcd4e88e0e
commit aa6710901e
3 changed files with 30 additions and 4 deletions

View File

@ -48,10 +48,8 @@ int main(int argc, char *argv[])
Info<< "\nStarting time loop\n" << endl;
while (runTime.run())
while (runTime.loop())
{
runTime++;
Info<< "\n Time = " << runTime.timeName() << nl << endl;
#include "readPISOControls.H"