checkConstantOption.H
Go to the documentation of this file.
1 // Deprecated include (2024-05) - prefer timeSelector
2 // ----------------------------------------------------------------------------
3 
4 // Unless -constant is present, skip startTime if it is "constant"
5 
6 if
7 (
8  !args.found("constant")
9  && (startTime < Times.size()-1)
10  && (Times[startTime].name() == "constant")
11 )
12 {
13  ++startTime;
14 }
15 
16 // ************************************************************************* //
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition: exprTraits.C:127
Foam::argList args(argc, argv)
Foam::label startTime
bool found(const word &optName) const
Return true if the named option is found.
Definition: argListI.H:171