setRegionNames.H
Go to the documentation of this file.
2 (
3  args.optionFound("allRegions")
4  ? runTime .controlDict().subDict("regionSolvers").toc()
5  : wordList
6  (
7  1,
8  args.optionFound("region")
9  ? args.optionRead<word>("region")
10  : polyMesh::defaultRegion
11  )
12 );
T optionRead(const word &opt) const
Read a value from the named option.
Definition: argListI.H:193
bool optionFound(const word &opt) const
Return true if the named option is found.
Definition: argListI.H:114
List< word > wordList
A List of words.
Definition: fileName.H:54
const Foam::wordList regionNames(args.optionFound("allRegions") ? runTime .controlDict().subDict("regionSolvers").toc() :wordList(1, args.optionFound("region") ? args.optionRead< word >("region") :polyMesh::defaultRegion))
Foam::argList args(argc, argv)