Commit 8eeb5e86 authored by mattijs's avatar mattijs
Browse files

ENH: redistributePar: handle cyclicACMI. See #1558.

Explicitly avoid updating cyclicACMI.
parent eacba825
......@@ -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<cyclicACMIFvPatch>(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<cyclicACMIFvPatch>(fvp))
{
if (patchSchedule[patchEvali].init)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment