From 2effa5502672c5d2f477b94d653030e9e6e6e285 Mon Sep 17 00:00:00 2001 From: graham <g.macpherson@opencfd.co.uk> Date: Thu, 12 Nov 2009 15:46:06 +0000 Subject: [PATCH] Making the triggering of a block sort be on blockLength >= 1 rather than blockLength > 1 so that ownerBlockStart is set correctly. --- .../conformalVoronoiMesh/conformalVoronoiMesh.C | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.C b/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.C index 008d462e2bd..ac61a70f90e 100644 --- a/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.C +++ b/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.C @@ -2079,6 +2079,7 @@ void Foam::conformalVoronoiMesh::calcDualMesh cc1++; cc2++; + } while (cc1 != ccStart); if (verticesOnFace.size() >= 3) @@ -2449,7 +2450,7 @@ void Foam::conformalVoronoiMesh::sortFaces for (label o = 1; o < owner.size(); o++) { - label blockLength = -1; + label blockLength = -1; if (owner[o] > owner[o-1]) { @@ -2468,7 +2469,7 @@ void Foam::conformalVoronoiMesh::sortFaces blockLength = o - ownerBlockStart + 1; } - if (blockLength > 1) + if (blockLength >= 1) { labelList blockIndices = identity(blockLength) + ownerBlockStart; -- GitLab