diff --git a/src/parallel/parallel/domainDecompositionNonConformal.C b/src/parallel/parallel/domainDecompositionNonConformal.C index a71440777b..8caef1f91e 100644 --- a/src/parallel/parallel/domainDecompositionNonConformal.C +++ b/src/parallel/parallel/domainDecompositionNonConformal.C @@ -159,31 +159,40 @@ void checkCompleteMeshOrdering } // Mapped patches - if - ( - isA(fvp) - && refCast(fvp).owner() - ) + if (isA(fvp)) { + const label ncmwPatchi = patchi; + const nonConformalMappedWallFvPatch& ncmwFvp = refCast(fvp); + const fvsPatchLabelField& polyFacesPf = + completeMesh.polyFacesBf()[ncmwPatchi]; + const domainDecomposition& nbrDecomposition = regionMeshes[ncmwFvp.nbrRegionName()](); const fvMesh& nbrCompleteMesh = nbrDecomposition.completeMesh(); - const label ncmwPatchi = patchi; + if (nbrCompleteMesh.conformal()) continue; + const label nbrNcmwPatchi = nbrCompleteMesh.boundary()[ncmwFvp.nbrPatchName()].index(); + const nonConformalMappedWallFvPatch& nbrNcmwFvp = + refCast + (nbrCompleteMesh.boundary()[nbrNcmwPatchi]); + + const fvsPatchLabelField& nbrPolyFacesPf = + nbrCompleteMesh.polyFacesBf()[nbrNcmwPatchi]; + checkNonConformalCoupledPatchOrdering ( {-labelMax, labelMax}, - completeMesh.boundary()[ncmwPatchi], - nbrCompleteMesh.boundary()[nbrNcmwPatchi], - completeMesh.polyFacesBf()[ncmwPatchi], - nbrCompleteMesh.polyFacesBf()[ncmwPatchi] + ncmwFvp.owner() ? ncmwFvp : nbrNcmwFvp, + ncmwFvp.owner() ? nbrNcmwFvp : ncmwFvp, + ncmwFvp.owner() ? polyFacesPf : nbrPolyFacesPf, + ncmwFvp.owner() ? nbrPolyFacesPf : polyFacesPf ); } @@ -294,11 +303,7 @@ void checkProcMeshesOrdering } // Mapped patches - if - ( - isA(fvp) - && refCast(fvp).owner() - ) + if (isA(fvp)) { const label ncmwPatchi = patchi; @@ -334,23 +339,30 @@ void checkProcMeshesOrdering refCast (nbrProcMesh.polyFacesBf()[nbrNcmwPatchi]); + const SubList