Salome HOME
Merge branch 'pre/V8_3_BR_izf' into pre/V8_3_BR
authorPaul RASCLE <paul.rascle@edf.fr>
Fri, 14 Jul 2017 14:55:00 +0000 (16:55 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Fri, 14 Jul 2017 14:55:00 +0000 (16:55 +0200)
src/salome_hydro/interpolz_gui.py
src/salome_hydro/pytel/eficas/appli.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:
index 0e0458aed48a43c8721eef2818ebf3d9015822bb..f1eb3ec31fe9dd530658e2c91b4bb498bdba3f8b 100755 (executable)
@@ -53,11 +53,10 @@ class EficasForPytelAppli(eficasSalome.MyEficas):
         gridLayout = QGridLayout(area)
         gridLayout.addWidget(self)
         area.setWidgetResizable(1)
+        sgPyQt.createView("Eficas Pytel", self)
         if fichier == None : self.fileNew()
         else : self.addJdcInSalome(fichier)
 
-        sgPyQt.createView("Eficas Pytel", self)
-
     def addJdcInSalome(self, jdcPath):
         """
         Add the newly created file in Salome study