BUG: snappyHexMesh: compacting list w/o checking for aliasing. Fixes #197

This commit is contained in:
mattijs 2016-07-27 13:06:01 +01:00
parent b2722eb66b
commit b8cf59e869

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -83,7 +83,7 @@ Foam::label Foam::meshRefinement::mergePatchFaces
label compactI = 0;
forAll(mergeSets, setI)
{
if (mergeSets[setI].size() == mergeSize)
if (mergeSets[setI].size() == mergeSize && compactI != setI)
{
mergeSets[compactI++] = mergeSets[setI];
}