33 optionalCpuLoad optionalCpuLoad::optionalCpuLoad_;
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_;
const word & name() const
Return name.
Type & operator[](const label)
Return element of UList.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~cpuLoad()
Destructor.
virtual const objectRegistry & thisDb() const
Return the object registry - resolve conflict polyMesh/lduMesh.
const dimensionSet dimTime
A class for handling words, derived from string.
double cpuTimeIncrement() const
Return CPU time (in seconds) since last call to cpuTimeIncrement()
Class to maintain a field of the CPU load per cell.
cpuLoad(const fvMesh &mesh, const word &name)
Construct from mesh, name and switch.
virtual void reset()
Reset the CPU time.
void store()
Transfer ownership of this object to its registry.
defineTypeNameAndDebug(combustionModel, 0)
const word & name() const
Return reference to name.
static optionalCpuLoad & New(const fvMesh &mesh, const word &name, const bool loadBalancing)
Mesh data needed to do the Finite Volume discretisation.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual void cpuTimeIncrement(const label celli)
Cache the CPU time increment for celli.
#define InfoInFunction
Report an information message using Foam::Info.