49 constexpr bool exitOnNoMatches =
true;
58 args.found(
"all-regions")
59 ||
args.found(
"allRegions")
67 IOobjectOption::READ_IF_PRESENT
74 <<
"Warning: No regionProperties, "
75 "assume default region" << nl << endl;
79 Info<<
"Using all regions: "
86 args.readListIfPresent<wordRe>(
"regions",
select)
91 if (
select.
size() == 1 && select[0].isLiteral())
104 IOobjectOption::READ_IF_PRESENT
116 <<
"No match in regions: "
119 if constexpr (exitOnNoMatches)
127 <<
"... ignoring and using default region"
137 Info<<
"Using regions: "
149 for (
const auto& val : select)
153 names[nGood++] = val;
161 <<
"Warning: No regionProperties, "
162 "using specified regions" <<
nl;
164 Info<<
"Using regions: "
173 <<
"Warning: No regionProperties, "
174 "assume default region" << nl << endl;
200 else if (
names.size() == 1 &&
names[0].empty())
void size(const label n)
Older name for setAddressableSize.
static word defaultRegion
Return the default region name.
Simple class to hold region information for coupled region simulations.
wordList names() const
The region names (sorted by region type).
List< bool > select(const label n, const labelUList &locations)
Construct a selection list of bools (all false) with the given pre-size, subsequently add specified l...
List< word > wordList
List of word.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
messageStream InfoErr
Information stream (stderr output on master, null elsewhere).
constexpr char nl
The newline '\n' character (0x0a).
Foam::argList args(argc, argv)