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

This commit is contained in:
mattijs
2018-07-26 12:07:54 +01:00
parent ba64ca8a5b
commit 9e345c5820

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / 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
This file is part of OpenFOAM.
@ -867,7 +867,7 @@ void Foam::surfaceIntersection::doCutEdges
maskFaces.append(pHit.index());
if (maskRegions[surf1[pHit.index()].region()])
if (maskRegions.test(surf1[pHit.index()].region()))
{
continue;
}