BUG: Corrected collocated patch handling

This commit is contained in:
andy
2013-04-05 11:36:49 +01:00
parent bf8df5f502
commit 26c2c3f627

View File

@ -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,18 +75,24 @@ 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))
{ {
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 else