From 8eeb5e86997e0a1759d3756f9b62915b62239f78 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 20 May 2020 18:03:54 +0100 Subject: [PATCH] ENH: redistributePar: handle cyclicACMI. See #1558. Explicitly avoid updating cyclicACMI. --- .../parallelProcessing/redistributePar/redistributePar.C | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C index 8d42532dc0..de0fdd7fad 100644 --- a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C +++ b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C @@ -100,6 +100,8 @@ Usage #include "meshRefinement.H" #include "pointFields.H" +#include "cyclicACMIFvPatch.H" + using namespace Foam; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -765,8 +767,9 @@ void correctCoupledBoundaryConditions(fvMesh& mesh) forAll(bfld, patchi) { auto& pfld = bfld[patchi]; + const auto& fvp = mesh.boundary()[patchi]; - if (pfld.patch().coupled()) + if (fvp.coupled() && !isA(fvp)) { pfld.initEvaluate(Pstream::defaultCommsType); } @@ -798,9 +801,10 @@ void correctCoupledBoundaryConditions(fvMesh& mesh) forAll(patchSchedule, patchEvali) { const label patchi = patchSchedule[patchEvali].patch; + const auto& fvp = mesh.boundary()[patchi]; auto& pfld = bfld[patchi]; - if (pfld.patch().coupled()) + if (fvp.coupled() && !isA(fvp)) { if (patchSchedule[patchEvali].init) {