Commit dca1323f authored by Kévin Moreau's avatar Kévin Moreau

treat issue #2: add break to LocateHotPoints in Util.cc, remove sort and unique in TLSSolver.cc

parent 3415cdbc
Pipeline #223 skipped
......@@ -274,8 +274,6 @@ void TLSSolver::delocalizeLevelSetField() {
LocateHotPointsCommand locate_hot_points(eval_norm_grad_phi, 1., delocalized_list);
ApplyCommandOnIntegrationRule(locate_hot_points, geom.getIntegRuleBasic(0), geom.begin("local"), geom.end("local"));
if(!delocalized_list.empty()) {
delocalized_list.sort();
delocalized_list.unique();
geom.updateDomains(delocalized_list);
delocalized_list.clear();
is_newly_delocalized=true;
......
......@@ -31,6 +31,7 @@ void LocateHotPointsCommand::execute(xfem::xGeomElem* geom_integ) {
eval(geom_appro, geom_integ, val);
if (val>=threshold) {
list.push_back(geom_appro->getEntity());
break;
}
}
}
......
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