checkTimeOption.H
Go to the documentation of this file.
1// Check -time and -latestTime options
2
3if (args.found("time"))
4{
5 Foam::scalar timeValue = args.get<scalar>("time");
6
8}
9
10if (args.found("latestTime"))
11{
12 startTime = Times.size() - 1;
13}
Foam::label startTime
static label findClosestTimeIndex(const instantList &timeDirs, const scalar t, const word &constantName="constant")
Search instantList for the time index closest to the specified time.
Definition: TimePaths.C:156
T get(const label index) const
Get a value from the argument at index.
Definition: argListI.H:278
bool found(const word &optName) const
Return true if the named option is found.
Definition: argListI.H:178
Foam::argList args(argc, argv)