50 constexpr bool exitOnNoMatches =
false;
59 args.found(
"all-area-regions")
60 ||
args.found(
"allAreas")
69 IOobjectOption::READ_IF_PRESENT
76 <<
"Warning: No finite-area regionProperties, "
77 "assume default region" << nl << endl;
81 Info<<
"Using all area-regions: "
90 args.readListIfPresent<wordRe>(
"area-regions",
select)
91 ||
args.readListIfPresent<wordRe>(
"areaRegions",
select)
97 if (
select.
size() == 1 && select[0].isLiteral())
111 IOobjectOption::READ_IF_PRESENT
123 <<
"No match in regions: "
126 if constexpr (exitOnNoMatches)
134 <<
"... ignoring and using default region"
144 Info<<
"Using area-regions: "
156 for (
const auto& val : select)
160 names[nGood++] = val;
167 <<
"Warning: No finite-area regionProperties, "
168 "using specified regions" <<
nl;
170 Info<<
"Using area-regions: "
179 <<
"Warning: No finite-area regionProperties, "
180 "assume default region" << nl << endl;
194 !
args.readIfPresent(
"area-region",
name)
195 && !
args.readIfPresent(
"areaRegion",
name)
208 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)