#
#========================================================================
#========================================================================
-def geom_smesh_exec(theStudy):
+def geom_smesh_exec():
"""
Python script for GEOM and SMESH
"""
#
while not error :
#
- geompy = geomBuilder.New(theStudy)
+ geompy = geomBuilder.New()
#
# Creation of the box
# ===================
# Creation of the mesh
# ====================
- smesh = smeshBuilder.New(theStudy)
+ smesh = smeshBuilder.New()
box_m = smesh.Mesh(box_g)
smesh.SetName(box_m.GetMesh(), 'MESH')
#
#========================================================================
#
#========================================================================
-def field_exec(theStudy, niter):
+def field_exec(niter):
"""
Python script for MEDCoupling
"""
#========================================================================
#========================================================================
-def homard_exec(theStudy):
+def homard_exec():
"""
Python script for HOMARD
"""
#
while not error :
#
- HOMARD.SetCurrentStudy(theStudy)
+ HOMARD.UpdateStudy()
#
# Creation of the zones
# =====================
# Creation of the iteration 3
#
- error = field_exec(theStudy, 2)
+ error = field_exec(2)
if error :
error = 30
break
# Geometry and Mesh
#
try :
- ERROR = geom_smesh_exec(salome.myStudy)
+ ERROR = geom_smesh_exec()
if ERROR :
raise Exception('Pb in geom_smesh_exec')
except Exception as eee:
# Exec of HOMARD-SALOME
#
try :
- ERROR = homard_exec(salome.myStudy)
+ ERROR = homard_exec()
if ERROR :
raise Exception('Pb in homard_exec at iteration %d' %ERROR )
except Exception as eee:
test_results(REP_DATA, TEST_NAME, DIRCASE, N_ITER_TEST_FILE, N_REP_TEST_FILE, DESTROY_DIR)
#
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(True)
+ salome.sg.updateObjBrowser()
iparameters.getSession().restoreVisualState(1)