Commit c07ab245 authored by sergio's avatar sergio Committed by Andrew Heather
Browse files

BUG: EP:1070. Adding check for coupled patches in faceReflecting

parent bb35d784
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd. \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -412,6 +412,10 @@ void Foam::faceReflecting::calculate() ...@@ -412,6 +412,10 @@ void Foam::faceReflecting::calculate()
// Fill patchr // Fill patchr
forAll(patchr, patchi) forAll(patchr, patchi)
{
const polyPatch& pp = patches[patchi];
if (!pp.coupled() && !isA<cyclicAMIPolyPatch>(pp))
{ {
for (label bandI = 0; bandI < nBands; bandI++) for (label bandI = 0; bandI < nBands; bandI++)
{ {
...@@ -432,6 +436,7 @@ void Foam::faceReflecting::calculate() ...@@ -432,6 +436,7 @@ void Foam::faceReflecting::calculate()
); );
} }
} }
}
List<scalarField> r(nBands); List<scalarField> r(nBands);
for (label bandI = 0; bandI < nBands; bandI++) for (label bandI = 0; bandI < nBands; bandI++)
......
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