mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: improve controls for Time (issue #910)
- relocate some standard functionality to TimePaths to allow a lighter means of managing time directories without using the entire Time mechanism. - optional enableLibs for Time construction (default is on) and a corresponding argList::noLibs() and "-no-libs" option STYLE: - mark Time::outputTime() as deprecated MAY-2016 - use pre-increment for runTime, although there is no difference in behaviour or performance.
This commit is contained in:
@ -65,7 +65,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
scalar t0 = runTime.userTimeToTime(ca0 - runTime.theta());
|
||||
runTime.setDeltaT(t0);
|
||||
runTime++;
|
||||
++runTime;
|
||||
Info<< "CA = " << runTime.theta() << endl;
|
||||
mesh.move();
|
||||
}
|
||||
@ -76,7 +76,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
scalar t1 = runTime.userTimeToTime(ca1 - runTime.theta());
|
||||
runTime.setDeltaT(t1);
|
||||
runTime++;
|
||||
++runTime;
|
||||
Info<< "CA = " << runTime.theta() << endl;
|
||||
mesh.move();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user