99 hashset -= controlDictDebug;
103 hashset -= controlDictInfo;
106 hashset = optSwitches;
107 hashset -= controlDictOpt;
113 Info<<
"DebugSwitches" << debugSwitches <<
endl;
114 Info<<
"InfoSwitches" << infoSwitches <<
endl;
115 Info<<
"OptimisationSwitches" << optSwitches <<
endl;
120 void listSwitches(
const argList& args)
147 int main(
int argc,
char *argv[])
153 "List switches declared in libraries but not set in etc/controlDict" 157 "registeredSwitches",
158 "List switches registered for run-time modification" 163 "List switches declared in libraries but not set in etc/controlDict" 168 "List scalar field boundary conditions (fvPatchField<scalar>)" 173 "List vector field boundary conditions (fvPatchField<vector>)" 178 "List functionObjects" 187 "incompressibleTurbulenceModels",
188 "List incompressible turbulenceModels" 192 "compressibleTurbulenceModels",
193 "List compressible turbulenceModels" 229 Info<<
"functionObjects" 230 << functionObject::dictionaryConstructorTablePtr_->sortedToc()
237 << fv::option::dictionaryConstructorTablePtr_->sortedToc()
241 if (args.
optionFound(
"incompressibleTurbulenceModels"))
243 Info<<
"Turbulence models" 244 << incompressible::turbulenceModel::
245 dictionaryConstructorTablePtr_->sortedToc()
249 << incompressible::RASModel::
250 dictionaryConstructorTablePtr_->sortedToc()
254 << incompressible::LESModel::
255 dictionaryConstructorTablePtr_->sortedToc()
259 if (args.
optionFound(
"compressibleTurbulenceModels"))
261 Info<<
"Turbulence models" 262 << compressible::turbulenceModel::
263 dictionaryConstructorTablePtr_->sortedToc()
267 << compressible::RASModel::
268 dictionaryConstructorTablePtr_->sortedToc()
272 << compressible::LESModel::
273 dictionaryConstructorTablePtr_->sortedToc()
A HashTable with keys but without contents.
runTime controlDict().lookup("adjustTimeStep") >> adjustTimeStep
A list of keyword definitions, which are a keyword followed by any number of values (e...
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAllReverse(list, i)
Reverse loop across all elements in list.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
static void noParallel()
Remove the parallel options.
simpleObjectRegistry & debugObjects()
Get access to registered debug switch objects.
const Foam::HashTable< string > & options() const
Return options.
simpleObjectRegistry & optimisationObjects()
Get access to registered optimisation switch objects.
fileNameList findEtcFiles(const fileName &, bool mandatory=false, bool findFirst=false)
Search for files from user/group/shipped directories.
wordList sortedToc() const
Return the sorted table of contents.
bool optionFound(const word &opt) const
Return true if the named option is found.
Functions to search 'etc' directories for configuration files etc.
dictionary & infoSwitches()
The InfoSwitches sub-dictionary in the central controlDict.
Extract command arguments and options from the supplied argc and argv parameters. ...
simpleObjectRegistry & infoObjects()
Get access to registered info switch objects.
List< Key > sortedToc() const
Return the table of contents as a sorted list.
bool merge(const dictionary &)
Merge entries from the given dictionary.
dictionary & optimisationSwitches()
The OptimisationSwitches sub-dictionary in the central controlDict.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
dictionary & debugSwitches()
The DebugSwitches sub-dictionary in the central controlDict.
void printUsage() const
Print usage.
Foam::argList args(argc, argv)