30 template<
class Triangulation>
37 template<
class Triangulation>
40 const string& description,
46 Info<<
nl <<
"--- [ cpuTime " 47 << time().elapsedCpuTime() <<
" s, " 48 <<
"delta " << time().cpuTimeIncrement()<<
" s";
50 if (description != word::null)
52 Info<<
", " << description <<
" ";
64 template<
class Triangulation>
67 label
id = cellCount_++;
72 <<
"Cell counter has overflowed." <<
endl;
79 template<
class Triangulation>
82 label
id = vertexCount_++;
87 <<
"Vertex counter has overflowed." <<
endl;
94 template<
class Triangulation>
101 template<
class Triangulation>
108 template<
class Triangulation>
115 template<
class Triangulation>
label cellCount() const
Return the cell count (the next unique cell index)
constexpr char nl
The newline '\n' character (0x0a)
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.
const Time & time() const
Return a reference to the Time object.
static void check(const int retVal, const char *what)
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.
messageStream Info
Information stream (stdout output on master, null elsewhere)