From d28ff46476c85116dd39325f1b72c4136fc4571d Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 31 Mar 2016 08:57:34 +0100 Subject: [PATCH] BUG: faceZoneToCell: use of -1 cell labels --- .../sets/cellSources/faceZoneToCell/faceZoneToCell.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshTools/sets/cellSources/faceZoneToCell/faceZoneToCell.C b/src/meshTools/sets/cellSources/faceZoneToCell/faceZoneToCell.C index 9157348433..a6a11f6550 100644 --- a/src/meshTools/sets/cellSources/faceZoneToCell/faceZoneToCell.C +++ b/src/meshTools/sets/cellSources/faceZoneToCell/faceZoneToCell.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -90,7 +90,7 @@ void Foam::faceZoneToCell::combine(topoSet& set, const bool add) const forAll(cellLabels, i) { // Only do active cells - if (cellLabels[i] < mesh_.nCells()) + if (cellLabels[i] >= 0 && cellLabels[i] < mesh_.nCells()) { addOrDelete(set, cellLabels[i], add); }