Commit 179129f1 authored by Alen Cukrov's avatar Alen Cukrov
Browse files

Creation of cells subsets at bad quality faces

parent 0dd16011
......@@ -292,8 +292,20 @@ void meshOptimizer::untangleMeshFV
subsetId = mesh_.addFaceSubset("badFaces");
const labelList& owner = mesh_.owner();
const labelList& neighbour = mesh_.neighbour();
const label badCellsId =
forAllConstIter(labelHashSet, badFaces, it)
mesh_.addFaceToSubset(subsetId, it.key());
mesh_.addCellToSubset(badCellsId, owner[it.key()]);
if( neighbour[it.key()] < 0 )
mesh_.addCellToSubset(badCellsId, neighbour[it.key()]);
Info << "Finished untangling the mesh" << endl;
Markdown is supported
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