#
#========================================================================
#========================================================================
-def mesh_exec(theStudy):
+def mesh_exec():
"""
Python script for MED
"""
meshMEDFile3D.write(ficmed, 2)
except IOError as eee:
error = 2
- raise Exception('ExportToMEDX() failed. '+str(eee.message))
+ raise Exception('MEDFileUMesh.write() failed. ' + str(eee))
#
break
#
#========================================================================
#
#========================================================================
-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 hypothese DISTANCE INVERSE
# ==========================================
#
# Creation of the indicator
#
- error, ficmed_indic = field_exec(theStudy, niter)
+ error, ficmed_indic = field_exec(niter)
if error :
error = 10
break
# Geometry and Mesh
#
try :
- ERROR = mesh_exec(salome.myStudy)
+ ERROR = mesh_exec()
if ERROR :
raise Exception('Pb in mesh_exec')
except RuntimeError 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 RuntimeError 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)