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:
@ -131,7 +131,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
scalar U = UInf*(1.5*(1 - sqr(y)) + sum(A*B));
|
||||
file<< runTime.timeName() << token::TAB << U << endl;
|
||||
runTime++;
|
||||
++runTime;
|
||||
}
|
||||
|
||||
Info<< nl;
|
||||
|
||||
Reference in New Issue
Block a user