28 template<
class Triangulation>
35 template<
class Triangulation>
38 const string& description,
44 Info<<
nl <<
"--- [ cpuTime " 45 << time().elapsedCpuTime() <<
" s, " 46 <<
"delta " << time().cpuTimeIncrement()<<
" s";
48 if (description != word::null)
50 Info<<
", " << description <<
" ";
62 template<
class Triangulation>
65 label id = cellCount_++;
70 <<
"Cell counter has overflowed." <<
endl;
77 template<
class Triangulation>
80 label id = vertexCount_++;
85 <<
"Vertex counter has overflowed." <<
endl;
92 template<
class Triangulation>
99 template<
class Triangulation>
106 template<
class Triangulation>
113 template<
class Triangulation>
label cellCount() const
Return the cell count (the next unique cell index)
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.
label getNewVertexIndex() const
Create a new unique vertex index and return.
void resetVertexCount()
Set the vertex count to zero.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void timeCheck(const string &description, const bool check=true) const
Write the cpuTime to screen.
static const label labelMax
const Time & time() const
Return a reference to the Time object.
void resetCellCount()
Set the cell count to zero.
label vertexCount() const
Return the vertex count (the next unique vertex index)
#define WarningInFunction
Report a warning using Foam::Warning.
label getNewCellIndex() const
Create a new unique cell index and return.