Skip to content
Snippets Groups Projects
Commit 2ca29ea5 authored by andy's avatar andy
Browse files

BUG: meshRefinementMerge - always increment compactI if 'keep'

parent 8aff8834
Branches
Tags
No related merge requests found
......@@ -307,9 +307,14 @@ Foam::label Foam::meshRefinement::mergePatchFacesUndo
}
}
if (keep && (compactI != i))
if (keep)
{
allFaceSets[compactI++] = set;
if (compactI != i)
{
allFaceSets[compactI] = set;
}
compactI++;
}
}
allFaceSets.setSize(compactI);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment