Loading...
Searching...
No Matches
checkTimeOption.H
Go to the documentation of this file.
1// Deprecated include (2024-05) - prefer timeSelector
2// ----------------------------------------------------------------------------
3
4// Check -time and -latestTime options
5if (args.found("latestTime"))
6{
7 startTime = Times.size() - 1;
8}
9else if (args.found("time"))
10{
11 Foam::scalar timeValue = args.get<Foam::scalar>("time");
12
14}
15
16
17// ************************************************************************* //
Foam::label startTime
static label findClosestTimeIndex(const UList< instant > &timeDirs, const scalar t, const word &constantDirName="constant")
Search instant list for the time index closest to the specified time.
Definition TimePaths.C:119
Foam::argList args(argc, argv)