49 int main(
int argc,
char *argv[])
57 "Do not combine patches"
73 runTime.setTime(
timeDirs[timeI], timeI);
75 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
80 Info<<
"Detected changed patches. Recreating patch group table."
86 const wordList objNames = fieldObjs.names();
181 groupToPatches.append(
group);
182 fieldToTypes.append(fieldToType);
186 groupToPatches[groupI].append(
patchi);
191 forAll(groupToPatches, groupI)
195 if (patchIDs.
size() > 1)
205 Info<< bm[sortedPatches[i]].type()
206 <<
"\t: " << bm[sortedPatches[i]].
name() <<
nl;
212 Info<<
"group\t: " << groups[i] <<
nl;
#define forAll(list, i)
Loop across all elements in list.
static pointMesh & New(const word &name, const polyMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
An STL-conforming hash table.
List< Key > sortedToc() const
Return the table of contents as a sorted list.
List of IOobjects with searching and retrieving facilities.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
void size(const label)
Override size to be inconsistent with allocated storage.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
label size() const
Return the number of elements in the UPtrList.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
void matchGroups(const labelUList &patchIndices, wordList &groups, labelHashSet &nonGroupPatches) const
Match the patches to groups. Returns all the (fully matched) groups.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
int main(int argc, char *argv[])
static instantList timeDirs
const char *const group
Group name for atomic constants.
void addToFieldList(PtrList< GeoField > &fieldList, const IOobject &obj, const label fieldi, const typename GeoField::Mesh &mesh)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void collectFieldList(const PtrList< GeoField > &fieldList, const label patchi, HashTable< word > &fieldToType)
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
void outputFieldList(const PtrList< GeoField > &fieldList, const label patchi)
string expand(const string &s, string::size_type &index, const dictionary &dict, const bool allowEnvVars, const bool allowEmpty)
Foam::argList args(argc, argv)