45 #define CREATE_TIME createTime.H 49 #define CREATE_MESH createMesh.H 53 #define CREATE_FIELDS createFields.H 56 #ifndef CREATE_CONTROL 57 #define CREATE_CONTROL createControl.H 62 #define INCLUDE_FILE(X) INCLUDE_FILE2(X) 63 #define INCLUDE_FILE2(X) #X 69 argList::postProcessOptionName,
70 "Execute functionObjects only" 73 if (argList::postProcess(argc, argv))
80 functionObject::postProcess =
true;
86 functionObjectList::list();
90 #include INCLUDE_FILE(CREATE_TIME) 92 #include INCLUDE_FILE(CREATE_MESH) 95 #include INCLUDE_FILE(CREATE_CONTROL) 102 HashSet<wordRe> selectedFields;
105 autoPtr<functionObjectList> functionsPtr
112 runTime.setTime(timeDirs[timei], timei);
116 switch (
mesh.readUpdate())
118 case polyMesh::POINTS_MOVED:
120 functionsPtr->movePoints(
mesh);
123 case polyMesh::TOPO_CHANGE:
124 case polyMesh::TOPO_PATCH_CHANGE:
126 mapPolyMesh mpm(
mesh);
127 functionsPtr->updateMesh(mpm);
130 case polyMesh::UNCHANGED:
138 <<
"Unhandled enumeration" 147 #include INCLUDE_FILE(CREATE_FIELDS) 149 #ifdef CREATE_FIELDS_2 150 #include INCLUDE_FILE(CREATE_FIELDS_2) 153 #ifdef CREATE_FIELDS_3 154 #include INCLUDE_FILE(CREATE_FIELDS_3) 157 functionsPtr->execute();
160 if (timei == timeDirs.
size()-1)
189 #undef CREATE_CONTROL
void size(const label n)
Older name for setAddressableSize.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
Ostream & print(Ostream &os, UIntType value, char off='0', char on='1')
Print 0/1 bits in the (unsigned) integral type.
bool throwing() const noexcept
Return the current exception throwing state (on or off)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
#define forAll(list, i)
Loop across all elements in list.
const word & executable() const noexcept
Name of executable without the path.
errorManip< error > abort(error &err)
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options and also set the runTime to the first i...
messageStream Warning
Warning stream (stdout output on master, null elsewhere), with additional 'FOAM Warning' header text...
messageStream Info
Information stream (stdout output on master, null elsewhere)
Foam::argList args(argc, argv)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
bool found(const word &optName) const
Return true if the named option is found.
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...