diff --git a/applications/utilities/parallelProcessing/decomposePar/faMeshDecomposition.C b/applications/utilities/parallelProcessing/decomposePar/faMeshDecomposition.C index bcefd8c7c9..01a913e3e2 100644 --- a/applications/utilities/parallelProcessing/decomposePar/faMeshDecomposition.C +++ b/applications/utilities/parallelProcessing/decomposePar/faMeshDecomposition.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd. ------------------------------------------------------------------------------- | Copyright (C) 2016-2017 Wikki Ltd ------------------------------------------------------------------------------- @@ -345,7 +345,11 @@ void Foam::faMeshDecomposition::decomposeMesh() for(int eI=0; eI 0) + //- Do not suppress zero sized patches since make parallel + // actions inside patches near impossible. + //if (oldPatchSizes[patchI] > 0) { curBoundaryAddressing[nPatches] = patchI; diff --git a/src/finiteArea/faMesh/faMeshDemandDrivenData.C b/src/finiteArea/faMesh/faMeshDemandDrivenData.C index a2c0dc14be..4ca4942cf1 100644 --- a/src/finiteArea/faMesh/faMeshDemandDrivenData.C +++ b/src/finiteArea/faMesh/faMeshDemandDrivenData.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd. ------------------------------------------------------------------------------- | Copyright (C) 2016-2017 Wikki Ltd ------------------------------------------------------------------------------- @@ -1065,7 +1065,7 @@ void Foam::faMesh::calcPointAreaNormals() const // Processor patch points correction for (const faPatch& fap : boundary()) { - if (isA(fap)) + if (Pstream::parRun() && isA(fap)) { const processorFaPatch& procPatch = refCast(fap); @@ -1347,7 +1347,7 @@ void Foam::faMesh::calcPointAreaNormalsByQuadricsFit() const { const faPatch& fap = boundary()[patchI]; - if (isA(fap)) + if (Pstream::parRun() && isA(fap)) { const processorFaPatch& procPatch = refCast(boundary()[patchI]); @@ -1415,7 +1415,7 @@ void Foam::faMesh::calcPointAreaNormalsByQuadricsFit() const for (const faPatch& fap : boundary()) { - if (isA(fap)) + if (Pstream::parRun() && isA(fap)) { const processorFaPatch& procPatch = refCast(fap);