addTimeOptions.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011 OpenFOAM Foundation
9  Copyright (C) 2023 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
13 
14 Description
15  Add various time-related options (see Foam::timeSelector)
16 
17 Required Classes
18  - Foam::argList
19 
20 \*---------------------------------------------------------------------------*/
21 
23 (
24  "constant",
25  "include the 'constant/' dir in the times list"
26 );
27 
29 (
30  "latestTime",
31  "select the latest time"
32 );
33 
35 (
36  "noZero",
37  "exclude the '0/' dir from the times list"
38 );
39 
41 (
42  "time",
43  "time",
44  "specify a single time value to select"
45 );
46 
47 // ************************************************************************* //
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
Definition: argList.C:374
static void addOption(const word &optName, const string &param="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
Definition: argList.C:385