From: Paul RASCLE Date: Mon, 24 Aug 2020 15:32:56 +0000 (+0200) Subject: fix on shapeGroups.py X-Git-Tag: SH_V2_2_0~76 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b2b0c785040e26e68cb630f17654ce1e3ca923f8;p=modules%2Fhydro.git fix on shapeGroups.py --- diff --git a/src/HYDROTools/shapesGroups.py b/src/HYDROTools/shapesGroups.py index 18dedea5..1ed9e63b 100644 --- a/src/HYDROTools/shapesGroups.py +++ b/src/HYDROTools/shapesGroups.py @@ -206,7 +206,7 @@ def exploreEdgeGroups(meshFile, outputDirectory="", offsetX=0., offsetY=0.): prefix = os.path.basename(a[0]) # prefix = file name without extension mcMesh = ml.MEDFileMesh.New(meshFile) - dim = mcMesh.getSpaceDimension() + dim = mcMesh.getMeshDimension() d1=-1 # when dimension 2, edges are dim -1 if dim == 3: # when dimension 3, edges are dim -2 d1=-2