Skip to content
Snippets Groups Projects
Commit b8cf59e8 authored by mattijs's avatar mattijs
Browse files

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

parent b2722eb6
No related branches found
No related tags found
No related merge requests found
...@@ -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-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 ...@@ -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];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment