Commit ffcd149f authored by Christophe Geuzaine's avatar Christophe Geuzaine

Merge branch 'master' of https://gitlab.onelab.info/gmsh/gmsh

parents 12f4ab37 8508b696
Pipeline #2824 passed with stage
in 57 minutes and 24 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) {
......
......@@ -299,6 +299,11 @@ class client :
self._getParameter(param, warn_if_not_found)
return param.choices
def getNumberRange(self, name, warn_if_not_found=True):
param = _parameter('number', name=name)
self._getParameter(param, warn_if_not_found)
return [param.values[0] if len(param.values) else 0, param.min, param.max]
def show(self, name) :
if not self.socket or not name:
return
......
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