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;
86 functionObjectList::list();
90 #include INCLUDE_FILE(CREATE_TIME)
92 #include INCLUDE_FILE(CREATE_MESH)
95 #include INCLUDE_FILE(CREATE_CONTROL)
100 dictionary functionsDict;
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);
168 catch (
const IOerror& err)
void size(const label n)
Older name for setAddressableSize.
bool found(const word &optName) const
Return true if the named option is found.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
const word & executable() const noexcept
Name of executable without the path.
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)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
Foam::argList args(argc, argv)
#define forAll(list, i)
Loop across all elements in list.