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

BUG: Corrected collocated patch handling

parent bf8df5f5
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -75,18 +75,24 @@ Foam::PackedBoolList Foam::isoSurface::collocatedFaces
// Initialise to false
PackedBoolList collocated(pp.size());
if (isA<processorPolyPatch>(pp) && collocatedPatch(pp))
if (isA<processorPolyPatch>(pp))
{
forAll(pp, i)
if (collocatedPatch(pp))
{
collocated[i] = 1u;
forAll(pp, i)
{
collocated[i] = 1u;
}
}
}
else if (isA<cyclicPolyPatch>(pp) && collocatedPatch(pp))
else if (isA<cyclicPolyPatch>(pp))
{
forAll(pp, i)
if (collocatedPatch(pp))
{
collocated[i] = 1u;
forAll(pp, i)
{
collocated[i] = 1u;
}
}
}
else
......
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