From 26c2c3f627c4cc5608659946b2639ee595a8ce57 Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 5 Apr 2013 11:36:49 +0100 Subject: [PATCH] BUG: Corrected collocated patch handling --- .../sampledSurface/isoSurface/isoSurface.C | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/sampling/sampledSurface/isoSurface/isoSurface.C b/src/sampling/sampledSurface/isoSurface/isoSurface.C index 7fc7074943..63c245e8c8 100644 --- a/src/sampling/sampledSurface/isoSurface/isoSurface.C +++ b/src/sampling/sampledSurface/isoSurface/isoSurface.C @@ -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(pp) && collocatedPatch(pp)) + if (isA(pp)) { - forAll(pp, i) + if (collocatedPatch(pp)) { - collocated[i] = 1u; + forAll(pp, i) + { + collocated[i] = 1u; + } } } - else if (isA(pp) && collocatedPatch(pp)) + else if (isA(pp)) { - forAll(pp, i) + if (collocatedPatch(pp)) { - collocated[i] = 1u; + forAll(pp, i) + { + collocated[i] = 1u; + } } } else