Commit 48e14e10 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts

fix default tag for addDiscreteEntity

parent 6c68a9b0
Pipeline #2820 passed with stage
in 57 minutes and 27 seconds
......@@ -503,7 +503,7 @@ GMSH_API int gmsh::model::addDiscreteEntity(const int dim, const int tag,
}
int outTag = tag;
if(outTag < 0) {
outTag = GModel::current()->getMaxElementaryNumber(dim);
outTag = GModel::current()->getMaxElementaryNumber(dim)+1;
}
GEntity *e = GModel::current()->getEntityByTag(dim, outTag);
if(e) {
......
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