Commit 26c2c3f6 authored by andy's avatar andy
Browse files

BUG: Corrected collocated patch handling

parent bf8df5f5
...@@ -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) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -75,20 +75,26 @@ Foam::PackedBoolList Foam::isoSurface::collocatedFaces ...@@ -75,20 +75,26 @@ Foam::PackedBoolList Foam::isoSurface::collocatedFaces
// Initialise to false // Initialise to false
PackedBoolList collocated(pp.size()); PackedBoolList collocated(pp.size());
if (isA<processorPolyPatch>(pp) && collocatedPatch(pp)) if (isA<processorPolyPatch>(pp))
{
if (collocatedPatch(pp))
{ {
forAll(pp, i) forAll(pp, i)
{ {
collocated[i] = 1u; collocated[i] = 1u;
} }
} }
else if (isA<cyclicPolyPatch>(pp) && collocatedPatch(pp)) }
else if (isA<cyclicPolyPatch>(pp))
{
if (collocatedPatch(pp))
{ {
forAll(pp, i) forAll(pp, i)
{ {
collocated[i] = 1u; collocated[i] = 1u;
} }
} }
}
else else
{ {
FatalErrorIn FatalErrorIn
......
Supports Markdown
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