From 830b44f3f574d497554136625307418f071f5497 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Tue, 11 Jul 2017 09:28:17 +0200 Subject: [PATCH 1/1] interpolZ sur groupes de faces --- src/salome_hydro/interpolz_gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.30.2