mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: snappyHexMesh: compacting list w/o checking for aliasing. Fixes #197
This commit is contained in:
@ -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-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -83,7 +83,7 @@ Foam::label Foam::meshRefinement::mergePatchFaces
|
|||||||
label compactI = 0;
|
label compactI = 0;
|
||||||
forAll(mergeSets, setI)
|
forAll(mergeSets, setI)
|
||||||
{
|
{
|
||||||
if (mergeSets[setI].size() == mergeSize)
|
if (mergeSets[setI].size() == mergeSize && compactI != setI)
|
||||||
{
|
{
|
||||||
mergeSets[compactI++] = mergeSets[setI];
|
mergeSets[compactI++] = mergeSets[setI];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user