Commit 9e345c58 authored by mattijs's avatar mattijs
Browse files

BUG: surfaceIntersection: access out of bounds. Fixes #955

parent ba64ca8a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,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-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2015-2017 OpenCFD Ltd. \\/ M anipulation | Copyright (C) 2015-2018 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -867,7 +867,7 @@ void Foam::surfaceIntersection::doCutEdges ...@@ -867,7 +867,7 @@ void Foam::surfaceIntersection::doCutEdges
maskFaces.append(pHit.index()); maskFaces.append(pHit.index());
if (maskRegions[surf1[pHit.index()].region()]) if (maskRegions.test(surf1[pHit.index()].region()))
{ {
continue; continue;
} }
......
Markdown is supported
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