30template<
class Triangulation>
37template<
class Triangulation>
40 const string& description,
46 Info<<
nl <<
"--- [ cpuTime "
47 << time().elapsedCpuTime() <<
" s, "
48 <<
"delta " << time().cpuTimeIncrement()<<
" s";
52 Info<<
", " << description <<
" ";
64template<
class Triangulation>
67 label
id = cellCount_++;
72 <<
"Cell counter has overflowed." <<
endl;
79template<
class Triangulation>
82 label
id = vertexCount_++;
87 <<
"Vertex counter has overflowed." <<
endl;
94template<
class Triangulation>
101template<
class Triangulation>
108template<
class Triangulation>
115template<
class Triangulation>
void resetVertexCount()
Set the vertex count to zero.
const Time & time() const
Return a reference to the Time object.
label vertexCount() const
Return the vertex count (the next unique vertex index)
label getNewCellIndex() const
Create a new unique cell index and return.
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.
void timeCheck(const string &description, const bool check=true) const
Write the cpuTime to screen.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
#define WarningInFunction
Report a warning using Foam::Warning.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char nl
The newline '\n' character (0x0a)