# -*- coding: utf-8 -*-
-# Copyright (C) 2011-2016 CEA/DEN, EDF R&D
+# Copyright (C) 2011-2022 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Python script for HOMARD
Test test_2
"""
-__revision__ = "V4.03"
+__revision__ = "V4.05"
#========================================================================
TEST_NAME = "test_2"
#
#========================================================================
#========================================================================
-def homard_exec(theStudy):
+def homard_exec():
"""
Python script for HOMARD
"""
#
while not error :
#
- HOMARD.SetCurrentStudy(theStudy)
+ # HOMARD.UpdateStudy()
#
# Creation of the boundaries
# ==========================
scriptfile = os.path.normpath(scriptfile)
dirname = DIRCASE
yacs_test_2 = case_test_2.CreateYACSSchema("YACS_test_2", scriptfile, dirname, mesh_file)
- yacs_test_2.SetMaxIter(4)
+ yacs_test_2.SetMaxIter(N_ITER_TEST_FILE+1)
yacs_test_2.SetType(1)
filexml = os.path.join(DIRCASE, 'yacs_test_2.xml')
error = yacs_test_2.WriteOnFile(filexml)
# 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)