From 10e8490d21ab978ad013968064f52b62573e8766 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 17 Feb 2012 17:25:48 +0000 Subject: [PATCH] ENH: createPatch: do not remove zero-sized patches --- .../manipulation/createPatch/createPatch.C | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/applications/utilities/mesh/manipulation/createPatch/createPatch.C b/applications/utilities/mesh/manipulation/createPatch/createPatch.C index 7922d487a2..50c9f30839 100644 --- a/applications/utilities/mesh/manipulation/createPatch/createPatch.C +++ b/applications/utilities/mesh/manipulation/createPatch/createPatch.C @@ -94,7 +94,7 @@ void changePatchID // Filter out the empty patches. -void filterPatches(polyMesh& mesh) +void filterPatches(polyMesh& mesh, const HashSet& addedPatchNames) { const polyBoundaryMesh& patches = mesh.boundaryMesh(); @@ -111,7 +111,11 @@ void filterPatches(polyMesh& mesh) // Note: reduce possible since non-proc patches guaranteed in same order if (!isA(pp)) { - if (returnReduce(pp.size(), sumOp