From: Paul RASCLE Date: Tue, 11 Jul 2017 07:28:17 +0000 (+0200) Subject: interpolZ sur groupes de faces X-Git-Tag: Salome_8_3_Hydro_2_0rc1~9^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=830b44f3f574d497554136625307418f071f5497;p=modules%2Fhydrosolver.git interpolZ sur groupes de faces --- diff --git a/src/salome_hydro/interpolz_gui.py b/src/salome_hydro/interpolz_gui.py index 978c1f1..2936521 100644 --- a/src/salome_hydro/interpolz_gui.py +++ b/src/salome_hydro/interpolz_gui.py @@ -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: