checkTimeOption.H
Go to the documentation of this file.
1 // Check -time and -latestTime options
2 
3 if (args.found("time"))
4 {
5  Foam::scalar timeValue = args.get<scalar>("time");
6 
8 }
9 
10 if (args.found("latestTime"))
11 {
12  startTime = Times.size() - 1;
13 }
static label findClosestTimeIndex(const instantList &timeDirs, const scalar t, const word &constantDirName="constant")
Search instantList for the time index closest to the specified time.
Definition: TimePaths.C:125
T get(const label index) const
Get a value from the argument at index.
Definition: argListI.H:271
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