Files
OpenFOAM-12/src/OpenFOAM/include/listOutput.H
Henry Weller af66eb78a6 listSwitches: moved from argList to debug
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.
2017-06-11 23:18:34 +01:00

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);
}