52int main(
int argc,
char *argv[])
56 "List regions from constant/regionProperties"
60 argList::noParallel();
62 argList::noFunctionObjects();
66 argList::noMandatoryArgs();
67 argList::addArgument(
"regionType ... regionType");
74 Time::controlDictName,
93 for (label argi = 1; argi <
args.
size(); ++argi)
95 regionTypes[nTypes] =
args[argi];
97 const word& regType = regionTypes[nTypes];
101 if (
rp.found(regType))
107 InfoErr<<
"No region-type: " << regType <<
nl;
112 regionTypes.
resize(nTypes);
116 regionTypes =
rp.sortedToc();
120 for (
const word& regionType : regionTypes)
bool insert(const Key &key)
Insert a new entry, not overwriting existing entries.
void resize(const label len)
Adjust allocated size of list.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
label size() const noexcept
The number of arguments.
Simple class to hold region information for coupled region simulations.
A class for handling words, derived from Foam::string.
regionProperties rp(runTime)
Foam::word regionName(Foam::polyMesh::defaultRegion)
messageStream Info
Information stream (stdout output on master, null elsewhere)
messageStream InfoErr
Information stream (stderr output on master, null elsewhere)
constexpr char nl
The newline '\n' character (0x0a)
Foam::argList args(argc, argv)