listOutput.H
Go to the documentation of this file.
1 bool listOptions = false ;
2 
3 if
4 (
5  args.optionFound("listSwitches")
6 )
7 {
8  debug::listSwitches(args.optionFound("includeUnsetSwitches"));
9  listOptions = true;
10 }
11 
12 if
13 (
14  args.optionFound("listRegisteredSwitches")
15 )
16 {
17  debug::listRegisteredSwitches(args.optionFound("includeUnsetSwitches"));
18  listOptions = true;
19 }
20 
21 #ifdef fvPatchField_H
22 if (args.optionFound("listScalarBCs"))
23 {
24  Info<< "scalarBCs"
25  << fvPatchField<scalar>::dictionaryConstructorTablePtr_->sortedToc()
26  << endl;
27  listOptions = true;
28 }
29 
30 if (args.optionFound("listVectorBCs"))
31 {
32  Info<< "vectorBCs"
33  << fvPatchField<vector>::dictionaryConstructorTablePtr_->sortedToc()
34  << endl;
35  listOptions = true;
36 }
37 #endif
38 
39 #ifdef functionObject_H
40 if (args.optionFound("listFunctionObjects"))
41 {
42  Info<< "functionObjects"
43  << functionObject::dictionaryConstructorTablePtr_->sortedToc()
44  << endl;
45  listOptions = true;
46 }
47 #endif
48 
49 #ifdef fvOption_H
50 if (args.optionFound("listFvOptions"))
51 {
52  Info<< "fvOptions"
53  << fv::option::dictionaryConstructorTablePtr_->sortedToc()
54  << endl;
55  listOptions = true;
56 }
57 #endif
58 
59 #ifdef turbulentTransportModel_H
60 if (args.optionFound("listTurbulenceModels"))
61 {
62  Info<< "Turbulence models"
63  << incompressible::turbulenceModel::
64  dictionaryConstructorTablePtr_->sortedToc()
65  << endl;
66 
67  Info<< "RAS models"
68  << incompressible::RASModel::
69  dictionaryConstructorTablePtr_->sortedToc()
70  << endl;
71 
72  Info<< "LES models"
73  << incompressible::LESModel::
74  dictionaryConstructorTablePtr_->sortedToc()
75  << endl;
76  listOptions = true;
77 }
78 #elif defined(turbulentFluidThermoModel_H)
79 if (args.optionFound("listTurbulenceModels"))
80 {
81  Info<< "Turbulence models"
82  << compressible::turbulenceModel::
83  dictionaryConstructorTablePtr_->sortedToc()
84  << endl;
85 
86  Info<< "RAS models"
87  << compressible::RASModel::
88  dictionaryConstructorTablePtr_->sortedToc()
89  << endl;
90 
91  Info<< "LES models"
92  << compressible::LESModel::
93  dictionaryConstructorTablePtr_->sortedToc()
94  << endl;
95  listOptions = true;
96 }
97 #endif
98 
99 if (listOptions)
100 {
101  exit(0);
102 }
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:124
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:256
bool optionFound(const word &opt) const
Return true if the named option is found.
Definition: argListI.H:108
void listRegisteredSwitches(const bool unset)
List registered debug switches.
Definition: debug.C:468
messageStream Info
bool listOptions
Definition: listOutput.H:1
Foam::argList args(argc, argv)
void listSwitches(const wordList &debugSwitches, const wordList &infoSwitches, const wordList &optSwitches, const bool unset)
Definition: debug.C:397