34 #ifndef processorRunTimes_H
35 #define processorRunTimes_H
68 Time completeRunTime_;
83 const Time& completeRunTime,
90 const Time& completeRunTime,
95 inline Time& proc0TimeRef()
97 return proc0RunTime_.
valid() ? proc0RunTime_() : procRunTimes_[0];
110 const bool enableFunctionObjects =
true,
118 const fileName& rootPath,
119 const fileName& caseName,
120 const bool enableFunctionObjects =
true,
134 return completeRunTime_;
140 return procRunTimes_;
146 return procRunTimes_.
size();
152 return proc0RunTime_.
valid() ? proc0RunTime_() : procRunTimes_[0];
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
label size() const
Return the number of elements in the UPtrList.
Extract command arguments and options from the supplied argc and argv parameters.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
An instant of time. Contains the time value and name.
instantList selectComplete(const argList &args)
Select the time.
~processorRunTimes()
Destructor.
const Time & proc0Time() const
Access the processor0 run time.
nProcsFrom
Enumeration for how the number of processors is determined.
instantList selectProc(const argList &args)
Select the time.
label nProcs() const
Return the number of processors.
processorRunTimes(const word &name, const argList &args, const bool enableFunctionObjects=true, const nProcsFrom=nProcsFrom::decomposeParDict)
Construct from name and arguments.
const PtrList< Time > & procTimes() const
Access the processor run times.
void setTime(const instant &inst, const label newIndex)
Set the time.
const Time & completeTime() const
Access the complete run time.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Foam::argList args(argc, argv)