diff --git a/src/finiteVolume/cfdTools/general/MRF/MRFZone.C b/src/finiteVolume/cfdTools/general/MRF/MRFZone.C index ab9709e993871b6aeaf16138e3f13408b664a591..6250de7e24bd1a862a84c7907fda274c10bb488a 100644 --- a/src/finiteVolume/cfdTools/general/MRF/MRFZone.C +++ b/src/finiteVolume/cfdTools/general/MRF/MRFZone.C @@ -32,8 +32,6 @@ License #include "PackedList.H" #include "syncTools.H" -#include "faceSet.H" - // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // Foam::MRFZone::MRFZone(const fvMesh& mesh, Istream& is) @@ -106,6 +104,23 @@ Foam::MRFZone::MRFZone(const fvMesh& mesh, Istream& is) zoneFacesSet[faceI] = 1u; } } + forAll(patches, patchI) + { + const polyPatch& pp = patches[patchI]; + + if (pp.coupled()) + { + forAll(pp, i) + { + label faceI = pp.start()+i; + + if (zoneCell.get(own[faceI]) == 1u) + { + zoneFacesSet[faceI] = 1u; + } + } + } + } syncTools::syncFaceList(mesh_, zoneFacesSet, orEqOp<unsigned int>());