Initially the listSwitches functions depended directly on argList functionality but this has now been factored out so that the listSwitches functions are more general and require only debug functionality.
103 lines
2.2 KiB
C
103 lines
2.2 KiB
C
bool listOptions = false ;
|
|
|
|
if
|
|
(
|
|
args.optionFound("listSwitches")
|
|
)
|
|
{
|
|
debug::listSwitches(args.optionFound("includeUnsetSwitches"));
|
|
listOptions = true;
|
|
}
|
|
|
|
if
|
|
(
|
|
args.optionFound("listRegisteredSwitches")
|
|
)
|
|
{
|
|
debug::listRegisteredSwitches(args.optionFound("includeUnsetSwitches"));
|
|
listOptions = true;
|
|
}
|
|
|
|
#ifdef fvPatchField_H
|
|
if (args.optionFound("listScalarBCs"))
|
|
{
|
|
Info<< "scalarBCs"
|
|
<< fvPatchField<scalar>::dictionaryConstructorTablePtr_->sortedToc()
|
|
<< endl;
|
|
listOptions = true;
|
|
}
|
|
|
|
if (args.optionFound("listVectorBCs"))
|
|
{
|
|
Info<< "vectorBCs"
|
|
<< fvPatchField<vector>::dictionaryConstructorTablePtr_->sortedToc()
|
|
<< endl;
|
|
listOptions = true;
|
|
}
|
|
#endif
|
|
|
|
#ifdef functionObject_H
|
|
if (args.optionFound("listFunctionObjects"))
|
|
{
|
|
Info<< "functionObjects"
|
|
<< functionObject::dictionaryConstructorTablePtr_->sortedToc()
|
|
<< endl;
|
|
listOptions = true;
|
|
}
|
|
#endif
|
|
|
|
#ifdef fvOption_H
|
|
if (args.optionFound("listFvOptions"))
|
|
{
|
|
Info<< "fvOptions"
|
|
<< fv::option::dictionaryConstructorTablePtr_->sortedToc()
|
|
<< endl;
|
|
listOptions = true;
|
|
}
|
|
#endif
|
|
|
|
#ifdef turbulentTransportModel_H
|
|
if (args.optionFound("listTurbulenceModels"))
|
|
{
|
|
Info<< "Turbulence models"
|
|
<< incompressible::turbulenceModel::
|
|
dictionaryConstructorTablePtr_->sortedToc()
|
|
<< endl;
|
|
|
|
Info<< "RAS models"
|
|
<< incompressible::RASModel::
|
|
dictionaryConstructorTablePtr_->sortedToc()
|
|
<< endl;
|
|
|
|
Info<< "LES models"
|
|
<< incompressible::LESModel::
|
|
dictionaryConstructorTablePtr_->sortedToc()
|
|
<< endl;
|
|
listOptions = true;
|
|
}
|
|
#elif defined(turbulentFluidThermoModel_H)
|
|
if (args.optionFound("listTurbulenceModels"))
|
|
{
|
|
Info<< "Turbulence models"
|
|
<< compressible::turbulenceModel::
|
|
dictionaryConstructorTablePtr_->sortedToc()
|
|
<< endl;
|
|
|
|
Info<< "RAS models"
|
|
<< compressible::RASModel::
|
|
dictionaryConstructorTablePtr_->sortedToc()
|
|
<< endl;
|
|
|
|
Info<< "LES models"
|
|
<< compressible::LESModel::
|
|
dictionaryConstructorTablePtr_->sortedToc()
|
|
<< endl;
|
|
listOptions = true;
|
|
}
|
|
#endif
|
|
|
|
if (listOptions)
|
|
{
|
|
exit(0);
|
|
}
|