Salome HOME
interpolZ sur groupes de faces
authorPaul RASCLE <paul.rascle@edf.fr>
Tue, 11 Jul 2017 07:28:17 +0000 (09:28 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Tue, 11 Jul 2017 07:28:17 +0000 (09:28 +0200)
src/salome_hydro/interpolz_gui.py

index 978c1f13bd8ced35675f51fa2de68326471d2bda..29365218685e9a82af105af36dee861d840ec70b 100644 (file)
@@ -40,10 +40,10 @@ def get_med_groups( file_path ):
     try:
         #groups = list(MEDLoader.GetMeshGroupsNames(file_path, mesh1))
         grps = mesh1.GetGroups()
-        groups = [grp.GetName() for grp in grps if grp.GetType() == SMESH.NODE]
+        groups = [grp.GetName() for grp in grps if grp.GetType() == SMESH.FACE]
         if len(groups) == 0:
-          print "Problem! There are no groups of nodes in the mesh!"
-          print "Please create at least the groups of nodes corresponding to each region of the HYDRO case"
+          print "Problem! There are no groups of faces in the mesh!"
+          print "Please create at least the groups of faces corresponding to each region of the HYDRO case"
           return []
         print 'Found groups:', groups
     except: