Skip to content
Snippets Groups Projects
Commit 0cac86ab authored by Franjo's avatar Franjo
Browse files

Cleanup

parent d76256d0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment