Commit 6ac27012 authored by Mattijs Janssens's avatar Mattijs Janssens
Browse files

added debug printing

parent 731d257f
...@@ -38,6 +38,12 @@ const labelListList& primitiveMesh::cellPoints() const ...@@ -38,6 +38,12 @@ const labelListList& primitiveMesh::cellPoints() const
{ {
if (!cpPtr_) if (!cpPtr_)
{ {
if (debug)
{
Pout<< "primitiveMesh::cellPoints() : "
<< "calculating cellPoints" << endl;
}
// Invert pointCells // Invert pointCells
cpPtr_ = new labelListList(nCells()); cpPtr_ = new labelListList(nCells());
invertManyToMany(nCells(), pointCells(), *cpPtr_); invertManyToMany(nCells(), pointCells(), *cpPtr_);
......
...@@ -38,6 +38,10 @@ const labelListList& primitiveMesh::edgeCells() const ...@@ -38,6 +38,10 @@ const labelListList& primitiveMesh::edgeCells() const
{ {
if (!ecPtr_) if (!ecPtr_)
{ {
if (debug)
{
Pout<< "primitiveMesh::edgeCells() : calculating edgeCells" << endl;
}
// Invert cellEdges // Invert cellEdges
ecPtr_ = new labelListList(nEdges()); ecPtr_ = new labelListList(nEdges());
invertManyToMany(nEdges(), cellEdges(), *ecPtr_); invertManyToMany(nEdges(), cellEdges(), *ecPtr_);
......
...@@ -38,6 +38,11 @@ const labelListList& primitiveMesh::edgeFaces() const ...@@ -38,6 +38,11 @@ const labelListList& primitiveMesh::edgeFaces() const
{ {
if (!efPtr_) if (!efPtr_)
{ {
if (debug)
{
Pout<< "primitiveMesh::edgeFaces() : calculating edgeFaces" << endl;
}
// Invert faceEdges // Invert faceEdges
efPtr_ = new labelListList(nEdges()); efPtr_ = new labelListList(nEdges());
invertManyToMany(nEdges(), faceEdges(), *efPtr_); invertManyToMany(nEdges(), faceEdges(), *efPtr_);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment