From 4da8a94f45ffb7580861ade9d89220fbf69eae54 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 1 Apr 2010 12:24:41 +0100 Subject: [PATCH] BUG: was not counting the processorCyclic patches. --- .../decomposePar/domainDecomposition.C | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C b/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C index cb764162ac..18338309dd 100644 --- a/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C +++ b/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C @@ -761,11 +761,7 @@ forAll(procPatches, patchI) forAll(procMesh.boundaryMesh(), patchi) { - if - ( - procMesh.boundaryMesh()[patchi].type() - == processorPolyPatch::typeName - ) + if (isA(procMesh.boundaryMesh()[patchi])) { const processorPolyPatch& ppp = refCast @@ -843,11 +839,7 @@ forAll(procPatches, patchI) // (= identity map for original patches, -1 for processor patches) label nMeshPatches = curPatchSizes.size(); labelList procBoundaryAddressing(identity(nMeshPatches)); - procBoundaryAddressing.setSize - ( - nMeshPatches+curProcessorPatchSizes.size(), - -1 - ); + procBoundaryAddressing.setSize(nMeshPatches+nProcPatches, -1); labelIOList boundaryProcAddressing (