From 41ae38c39ff39225fe6909f841914328ad55862f Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Sun, 29 Jan 2012 11:43:24 +0000 Subject: [PATCH] Fixing merge patch pairs --- .../mesh/generation/blockMesh/blockMeshApp.C | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/applications/utilities/mesh/generation/blockMesh/blockMeshApp.C b/applications/utilities/mesh/generation/blockMesh/blockMeshApp.C index 251e835c5..1833aa4ad 100644 --- a/applications/utilities/mesh/generation/blockMesh/blockMeshApp.C +++ b/applications/utilities/mesh/generation/blockMesh/blockMeshApp.C @@ -367,6 +367,29 @@ int main(int argc, char *argv[]) } attacher.changeMesh(); + + // Clean the mesh after attach + labelList patchSizes(mesh.boundaryMesh().size()); + labelList patchStarts(mesh.boundaryMesh().size()); + + forAll (mesh.boundaryMesh(), patchI) + { + patchSizes[patchI] = mesh.boundaryMesh()[patchI].size(); + patchStarts[patchI] = mesh.boundaryMesh()[patchI].start(); + } + + mesh.resetPrimitives + ( + xferCopy(mesh.points()), + xferCopy(mesh.faces()), + xferCopy(mesh.faceOwner()), + xferCopy(mesh.faceNeighbour()), + patchSizes, + patchStarts + ); + + mesh.setInstance(runTime.constant()); + mesh.removeZones(); } } else