Commit 0cac86ab authored by Franjo's avatar Franjo

Cleanup

parent d76256d0
......@@ -189,7 +189,6 @@ void cartesianMeshGenerator::optimiseFinalMesh()
optimizer.optimizeMeshFV();
optimizer.optimizeLowQualityFaces();
optimizer.optimizeMeshFVBestQuality();
optimizer.optimizeBoundaryLayer();
optimizer.untangleMeshFV();
......
......@@ -542,6 +542,7 @@ void meshOptimizer::optimizeMeshFVBestQuality
)
{
label nBadFaces, nIter(0);
label minIter(-1);
const faceListPMG& faces = mesh_.faces();
boolList changedFace(faces.size(), true);
......@@ -554,7 +555,7 @@ void meshOptimizer::optimizeMeshFVBestQuality
lockedPoints.append(pointI);
}
label minNumBadFaces(10 * faces.size()), minIter(-1);
label minNumBadFaces(10 * faces.size());
do
{
labelHashSet lowQualityFaces;
......@@ -582,6 +583,8 @@ void meshOptimizer::optimizeMeshFVBestQuality
if( nBadFaces < minNumBadFaces )
{
minNumBadFaces = nBadFaces;
//- update the iteration number when the minimum is achieved
minIter = nIter;
}
......
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