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>
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label getNewCellIndex() const
Create a new unique cell index and return.
void timeCheck(const string &description, const bool check=true) const
Write the cpuTime to screen.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void resetVertexCount()
Set the vertex count to zero.
const Time & time() const
Return a reference to the Time object.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
label vertexCount() const
Return the vertex count (the next unique vertex index)
static const label labelMax
label getNewVertexIndex() const
Create a new unique vertex index and return.
label cellCount() const
Return the cell count (the next unique cell index)
void resetCellCount()
Set the cell count to zero.
#define WarningInFunction
Report a warning using Foam::Warning.