Files
openfoam/src/OpenFOAM/include/checkConstantOption.H
Mark Olesen 2662042d49 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.
2018-07-02 10:20:01 +02:00

12 lines
201 B
C

// Unless -constant is present, skip startTime if it is "constant"
if
(
!args.found("constant")
&& (startTime < Times.size()-1)
&& (Times[startTime].name() == "constant")
)
{
++startTime;
}