45 #define CREATE_TIME createTime.H
49 #define CREATE_MESH createMesh.H
53 #define CREATE_FIELDS createFields.H
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"
73if (argList::postProcess(argc, argv))
80 functionObject::postProcess =
true;
84 if (
args.found(
"list"))
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
107 functionObjectList::New(
args,
runTime, functionsDict, selectedFields)
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"
139 <<
abort(FatalError);
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)
166 profiling::print(Info);
void size(const label n)
Older name for setAddressableSize.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
bool throwing() const noexcept
Return the current exception throwing state (on or off).
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
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...
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
messageStream Info
Information stream (stdout output on master, null elsewhere).
List< instant > instantList
List of instants.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
messageStream Warning
Warning stream (stdout output on master, null elsewhere), with additional 'FOAM Warning' header text.
Foam::argList args(argc, argv)
#define forAll(list, i)
Loop across all elements in list.