From efb2f886fadc7b74df03a3533f1eca607c3921e7 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 14 Mar 2012 09:35:02 +0000 Subject: [PATCH] BUG: createPatch: do not remove cyclics since are referred to by opposite side or processorCyclics --- .../mesh/manipulation/createPatch/createPatch.C | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/applications/utilities/mesh/manipulation/createPatch/createPatch.C b/applications/utilities/mesh/manipulation/createPatch/createPatch.C index 50c9f30839..7a969e15d1 100644 --- a/applications/utilities/mesh/manipulation/createPatch/createPatch.C +++ b/applications/utilities/mesh/manipulation/createPatch/createPatch.C @@ -111,10 +111,18 @@ void filterPatches(polyMesh& mesh, const HashSet& addedPatchNames) // Note: reduce possible since non-proc patches guaranteed in same order if (!isA(pp)) { + + // Add if + // - non zero size + // - or added from the createPatchDict + // - or cyclic (since referred to by other cyclic half or + // proccyclic) + if ( addedPatchNames.found(pp.name()) || returnReduce(pp.size(), sumOp