BUG: meshRefinementMerge - always increment compactI if 'keep'

This commit is contained in:
andy
2013-08-07 09:16:43 +01:00
parent 8aff88343e
commit 2ca29ea5f2

View File

@ -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); allFaceSets.setSize(compactI);