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: