BUG: snappyHexMesh: compacting list w/o checking for aliasing. Fixes #197
This commit is contained in:
parent
b2722eb66b
commit
b8cf59e869
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user