checkConstantOption.H
Go to the documentation of this file.
1 //
2 // checkConstantOption.H
3 // ~~~~~~~~~~~~~~~~~~~~~
4 // unless -constant is present, skip startTime if it is "constant"
5 
6  if
7  (
8  !args.optionFound("constant")
9  && (startTime < Times.size()-1)
10  && (Times[startTime].name() == "constant")
11  )
12  {
13  startTime++;
14  }
Foam::argList::optionFound
bool optionFound(const word &opt) const
Return true if the named option is found.
Definition: argListI.H:108
startTime
Foam::label startTime
Definition: checkTimeOptions.H:5
args
Foam::argList args(argc, argv)