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 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 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 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  #ifdef turbulentTransportModel_H
63  if (args.found("listTurbulenceModels"))
64  {
65  Info<< "Turbulence models"
66  << incompressible::turbulenceModel::
67  dictionaryConstructorTablePtr_->sortedToc()
68  << 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(turbulentFluidThermoModel_H)
82  if (args.found("listTurbulenceModels"))
83  {
84  Info<< "Turbulence models"
85  << compressible::turbulenceModel::
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  if (listOptions)
103  {
104  exit(0);
105  }
106 }
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 #endif
112 
113 // ************************************************************************* //
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
Foam::listSwitches
static void listSwitches(const wordList &debugSwitches, const wordList &infoSwitches, const wordList &optSwitches, const bool unset)
Definition: debug.C:372
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
Foam::exit
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:130
Foam::debug::listRegisteredSwitches
void listRegisteredSwitches(const bool unset=false)
List registered debug/info/optimisation switches.
Definition: debug.C:494
args
Foam::argList args(argc, argv)
Foam::argList::found
bool found(const word &optName) const
Return true if the named option is found.
Definition: argListI.H:178