setRootCaseListOutput.H
Go to the documentation of this file.
1// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
2// Process some "standard" list options
3
4#ifndef setRootCaseListOutput_H
5#define setRootCaseListOutput_H
6
7{
8 bool listOptions = false;
9
10 if (args.found("listSwitches"))
11 {
12 debug::listSwitches(args.found("listUnsetSwitches"));
13 listOptions = true;
14 }
15
16 if (args.found("listRegisteredSwitches"))
17 {
18 debug::listRegisteredSwitches(args.found("listUnsetSwitches"));
19 listOptions = true;
20 }
21
22 #ifdef Foam_fvPatchField_H
23 if (args.found("listScalarBCs"))
24 {
25 Info<< "scalarBCs"
26 << fvPatchField<Foam::scalar>::
27 dictionaryConstructorTablePtr_->sortedToc()
28 << endl;
29 listOptions = true;
30 }
31
32 if (args.found("listVectorBCs"))
33 {
34 Info<< "vectorBCs"
35 << fvPatchField<Foam::vector>::
36 dictionaryConstructorTablePtr_->sortedToc()
37 << endl;
38 listOptions = true;
39 }
40 #endif
41
42 #ifdef Foam_functionObject_H
43 if (args.found("listFunctionObjects"))
44 {
45 Info<< "functionObjects"
46 << functionObject::dictionaryConstructorTablePtr_->sortedToc()
47 << endl;
48 listOptions = true;
49 }
50 #endif
51
52 #ifdef Foam_fvOption_H
53 if (args.found("listFvOptions"))
54 {
55 Info<< "fvOptions"
56 << fv::option::dictionaryConstructorTablePtr_->sortedToc()
57 << endl;
58 listOptions = true;
59 }
60 #endif
61
62 #if defined(Foam_turbulentTransportModel_H)
63 if (args.found("listTurbulenceModels"))
64 {
65 Info<< "Turbulence models" << nl
66 << incompressible::turbulenceModel::
67 dictionaryConstructorTablePtr_->sortedToc()
68 << nl << endl;
69
70 Info<< "RAS models"
71 << incompressible::RASModel::
72 dictionaryConstructorTablePtr_->sortedToc()
73 << endl;
74
75 Info<< "LES models"
76 << incompressible::LESModel::
77 dictionaryConstructorTablePtr_->sortedToc()
78 << endl;
79 listOptions = true;
80 }
81 #elif defined(Foam_turbulentFluidThermoModel_H)
82 if (args.found("listTurbulenceModels"))
83 {
84 Info<< "Turbulence models" << nl
85 << compressible::turbulenceModel::
86 dictionaryConstructorTablePtr_->sortedToc()
87 << nl << endl;
88
89 Info<< "RAS models"
90 << compressible::RASModel::
91 dictionaryConstructorTablePtr_->sortedToc()
92 << endl;
93
94 Info<< "LES models"
95 << compressible::LESModel::
96 dictionaryConstructorTablePtr_->sortedToc()
97 << endl;
98 listOptions = true;
99 }
100 #endif
101
102 if (listOptions)
103 {
104 exit(0);
105 }
106}
107
108
109// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110
111#endif
112
113// ************************************************************************* //
bool found(const word &optName) const
Return true if the named option is found.
Definition: argListI.H:178
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
constexpr char nl
The newline '\n' character (0x0a)
Definition: Ostream.H:53
Foam::argList args(argc, argv)