OpenFOAM
v2512
The open source CFD toolbox
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
5
if
(
args
.found(
"latestTime"
))
6
{
7
startTime
= Times.size() - 1;
8
}
9
else
if
(
args
.found(
"time"
))
10
{
11
Foam::scalar timeValue =
args
.get<Foam::scalar>(
"time"
);
12
13
startTime
=
Foam::Time::findClosestTimeIndex
(Times, timeValue);
14
}
15
16
17
// ************************************************************************* //
startTime
Foam::label startTime
Definition
checkTimeOptions.H:4
Foam::TimePaths::findClosestTimeIndex
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
args
Foam::argList args(argc, argv)
src
OpenFOAM
include
checkTimeOption.H
Generated by
1.16.1