refineWallLayer: Further improvement to the cellSet selection

This commit is contained in:
Henry Weller
2020-01-24 13:49:37 +00:00
parent f67fa33417
commit 3217f90703

View File

@ -146,13 +146,11 @@ int main(int argc, char *argv[])
<< " cells from cellSet " << cellsToRefine.localObjectPath()
<< nl << endl;
const labelList allCutCells(cutCells.toc());
forAll(allCutCells, i)
forAllIter(labelHashSet, cutCells, iter)
{
if (!cellsToRefine.found(allCutCells[i]))
if (!cellsToRefine.found(iter.key()))
{
cutCells.erase(allCutCells[i]);
cutCells.erase(iter);
}
}
}