Skip to content
Snippets Groups Projects
Commit 76098ab2 authored by Amaury Johnen's avatar Amaury Johnen
Browse files

avoid infinite optimization when it is unable to obtain a result that satisfies to requirement

parent 5d2f39cc
No related branches found
No related tags found
No related merge requests found
......@@ -675,7 +675,7 @@ void HighOrderMeshOptimizer(GModel *gm, OptHomParameters &p)
else
optimizeOneByOne(vertex2elements, element2entity, badasses, p, samples);
if (p.numBlobs) periodicity.fixPeriodicity();
} while (p.numBlobs);
} while (p.SUCCESS == 1 && p.numBlobs);
if (p.SUCCESS == 1)
Msg::Info("Optimization succeeded");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment