diff --git a/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C b/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C index e89096b70e..36a4dcdb01 100644 --- a/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C +++ b/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C @@ -722,7 +722,7 @@ void Foam::backgroundMeshDecomposition::buildPatchAndTree() globalBackgroundBounds_ = treeBoundBox(bbMin, bbMax); - if (debug) + if (cvMesh_.cvMeshControls().objOutput()) { OFstream fStr ( diff --git a/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.C b/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.C index e6710453bd..5a4f98e281 100644 --- a/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.C +++ b/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.C @@ -363,7 +363,7 @@ void Foam::conformalVoronoiMesh::insertSurfacePointPairs // processor add back the new index to both. // Each of points generated in this process are pair points, so there - // is no risk of underflowing type. + // is no risk of underflowing "type". // Pout<< "Suface point pair points before " // << pts.size() << " " << indices.size() << " " << types.size() @@ -386,7 +386,8 @@ void Foam::conformalVoronoiMesh::insertSurfacePointPairs // << " points generated" << endl; } - Info<< "USING INDEX IS POINTLESS, IT IS ALWAYS ZERO" << endl; + // Using index is actually pointless, it is always zero. Keep for clarity + // of code. forAll(pts, pI) { @@ -424,6 +425,10 @@ void Foam::conformalVoronoiMesh::insertEdgePointGroups << exit(FatalError); } + DynamicList pts; + DynamicList