]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
fix on shapeGroups.py
authorPaul RASCLE <paul.rascle@openfields.fr>
Mon, 24 Aug 2020 15:32:56 +0000 (17:32 +0200)
committerYOANN AUDOUIN <B61570@dsp0851742.postes.calibre.edf.fr>
Fri, 30 Oct 2020 16:06:22 +0000 (17:06 +0100)
src/HYDROTools/shapesGroups.py

index 18dedea56ae3a3a7b25330e9142302fa090a6a44..1ed9e63b46e9a9a7f53b383ec0ba9bdab63c193a 100644 (file)
@@ -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