Commit ac5e0d4b authored by Christophe Geuzaine's avatar Christophe Geuzaine

make sure to reset physical groups in GEO internals

FIXME: we should really move the physical group handling code to GModel
parent a36fe4ef
Pipeline #2750 passed with stage
in 59 minutes and 34 seconds
......@@ -553,10 +553,14 @@ GMSH_API void gmsh::model::removePhysicalGroups(const vectorpair &dimTags)
throw -1;
}
if(dimTags.empty()){
GModel::current()->getGEOInternals()->resetPhysicalGroups();
GModel::current()->removePhysicalGroups();
}
else{
// TODO: rewrite the unerlying code: it's slow
// FIXME:
// - move the physical code from GEO factory to GModel:
// if a mesh is loaded the GEO sync will re-create the group in GModel...
// - rewrite the unerlying code: it's slow
for(unsigned int i = 0; i < dimTags.size(); i++)
GModel::current()->removePhysicalGroup(dimTags[i].first, dimTags[i].second);
}
......
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