listOutput.H
Go to the documentation of this file.
1 bool listOptions = false;
2 
3 if (args.optionFound("listSwitches"))
4 {
6  listOptions = true;
7 }
8 
9 #ifdef fvPatchField_H
10 if (args.optionFound("listScalarBCs"))
11 {
12  Info<< "scalarBCs"
13  << fvPatchField<scalar>::dictionaryConstructorTablePtr_->sortedToc()
14  << endl;
15  listOptions = true;
16 }
17 
18 if (args.optionFound("listVectorBCs"))
19 {
20  Info<< "vectorBCs"
21  << fvPatchField<vector>::dictionaryConstructorTablePtr_->sortedToc()
22  << endl;
23  listOptions = true;
24 }
25 #endif
26 
27 #ifdef functionObject_H
28 if (args.optionFound("listFunctionObjects"))
29 {
30  Info<< "functionObjects"
31  << functionObject::dictionaryConstructorTablePtr_->sortedToc()
32  << endl;
33  listOptions = true;
34 }
35 #endif
36 
37 #ifdef fvModel_H
38 if (args.optionFound("listFvModels"))
39 {
40  Info<< "fvModels"
41  << Foam::fvModel::dictionaryConstructorTablePtr_->sortedToc()
42  << endl;
43  listOptions = true;
44 }
45 #endif
46 
47 #ifdef fvConstraint_H
48 if (args.optionFound("listFvConstraints"))
49 {
50  Info<< "fvConstraints"
51  << Foam::fvConstraint::dictionaryConstructorTablePtr_->sortedToc()
52  << endl;
53  listOptions = true;
54 }
55 #endif
56 
57 #ifdef incompressibleMomentumTransportModels_H
58 if (args.optionFound("listMomentumTransportModels"))
59 {
60  Info<< "Turbulence models"
61  << incompressible::momentumTransportModel::
62  dictionaryConstructorTablePtr_->sortedToc()
63  << endl;
64 
65  Info<< "RAS models"
66  << incompressible::RASModel::
67  dictionaryConstructorTablePtr_->sortedToc()
68  << endl;
69 
70  Info<< "LES models"
71  << incompressible::LESModel::
72  dictionaryConstructorTablePtr_->sortedToc()
73  << endl;
74  listOptions = true;
75 }
76 #elif defined(compressibleMomentumTransportModels_H)
77 if (args.optionFound("listMomentumTransportModels"))
78 {
79  Info<< "Turbulence models"
80  << compressible::momentumTransportModel::
81  dictionaryConstructorTablePtr_->sortedToc()
82  << endl;
83 
84  Info<< "Laminar models"
85  << compressible::laminarModel::
86  dictionaryConstructorTablePtr_->sortedToc()
87  << 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 #ifdef fluidThermophysicalTransportModel_H
103 if (args.optionFound("listThermophysicalTransportModels"))
104 {
105  Info<< "Turbulence models"
106  << fluidThermophysicalTransportModel::
107  dictionaryConstructorTablePtr_->sortedToc()
108  << endl;
109 
110  Info<< "Laminar models"
111  << laminarThermophysicalTransportModel
113  dictionaryConstructorTablePtr_->sortedToc()
114  << endl;
115 
116  Info<< "RAS models"
117  << RASThermophysicalTransportModel<fluidThermophysicalTransportModel>::
118  dictionaryConstructorTablePtr_->sortedToc()
119  << endl;
120 
121  Info<< "LES models"
122  << LESThermophysicalTransportModel<fluidThermophysicalTransportModel>::
123  dictionaryConstructorTablePtr_->sortedToc()
124  << endl;
125  listOptions = true;
126 }
127 #endif
128 
129 if (listOptions)
130 {
131  exit(0);
132 }
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:251
bool optionFound(const word &opt) const
Return true if the named option is found.
Definition: argListI.H:114
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:333
ThermophysicalTransportModel< compressible::momentumTransportModel, fluidThermo > fluidThermophysicalTransportModel