OpenFOAM: API Guide
v2112
The open source CFD toolbox
setRootCase.H
Go to the documentation of this file.
1
// Construct from (int argc, char* argv[]),
2
// - use argList::argsMandatory() to decide on checking command arguments.
3
// - check validity of the options
4
5
Foam::argList
args
(argc, argv);
6
if
(!
args
.
checkRootCase
())
7
{
8
Foam::FatalError
.
exit
();
9
}
10
11
// User can also perform checks on otherwise optional arguments.
12
// Eg,
13
//
14
// if (!args.check(true, false))
15
// {
16
// Foam::FatalError.exit();
17
// }
18
19
// Force dlOpen of FOAM_DLOPEN_LIBS (principally for Windows applications)
20
#include "
foamDlOpenLibs.H
"
Foam::argList
Extract command arguments and options from the supplied argc and argv parameters.
Definition:
argList.H:123
foamDlOpenLibs.H
Foam::FatalError
error FatalError
Foam::error::exit
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
Definition:
error.C:331
Foam::argList::checkRootCase
bool checkRootCase() const
Check root path and case path.
Definition:
argList.C:1954
args
Foam::argList args(argc, argv)
src
OpenFOAM
include
setRootCase.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.