Skip to content
Snippets Groups Projects
Commit f511f1b2 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Merge branch 'fix_remove_physical_groups_empty_geo_internals' into 'master'

fix remove physical group without geo internals

See merge request gmsh/gmsh!461
parents 83c4aeb0 c1f63aaf
No related branches found
No related tags found
No related merge requests found
...@@ -1027,6 +1027,9 @@ bool GEO_Internals::modifyPhysicalGroup(int dim, int tag, int op, ...@@ -1027,6 +1027,9 @@ bool GEO_Internals::modifyPhysicalGroup(int dim, int tag, int op,
Msg::Error("Physical %s %d already exists", str.c_str(), tag); Msg::Error("Physical %s %d already exists", str.c_str(), tag);
return false; return false;
} }
else if(!p && op == 2) {
return true;
}
else if(!p && op > 0) { else if(!p && op > 0) {
Msg::Error("Physical %s %d does not exist", str.c_str(), tag); Msg::Error("Physical %s %d does not exist", str.c_str(), tag);
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment