67 const bool loadBalancing
74 mesh.
thisDb().objectRegistry::template
81 return mesh.
thisDb().objectRegistry::template
82 lookupObjectRef<cpuLoad>
92 <<
"constructing " <<
name
93 <<
" for region " << mesh.
name() <<
endl;
105 return optionalCpuLoad::optionalCpuLoad_;
114 cpuTime_.cpuTimeIncrement();
120 operator[](celli) += cpuTime_.cpuTimeIncrement();
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Class to maintain a field of the CPU load per cell.
virtual void cpuTimeIncrement(const label celli)
Cache the CPU time increment for celli.
virtual ~cpuLoad()
Destructor.
cpuLoad(const fvMesh &mesh, const word &name)
Construct from mesh, name and switch.
virtual void reset()
Reset the CPU time.
Mesh data needed to do the Finite Volume discretisation.
virtual const objectRegistry & thisDb() const
Return the object registry - resolve conflict polyMesh/lduMesh.
const word & name() const
Return reference to name.
static optionalCpuLoad & New(const fvMesh &mesh, const word &name, const bool loadBalancing)
void store()
Transfer ownership of this object to its registry.
A class for handling words, derived from string.
#define InfoInFunction
Report an information message using Foam::Info.
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.
const dimensionSet dimTime
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.