From: GERALD NICOLAS Date: Tue, 18 Sep 2018 13:42:28 +0000 (+0200) Subject: Nombre maximal d'itérations du schéma YACS X-Git-Tag: V9_2_0a1~1^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=071231ff09154f2e66fb1e0279f8895520778981;p=modules%2Fhomard.git Nombre maximal d'itérations du schéma YACS --- diff --git a/src/tests/Test/test_1.py b/src/tests/Test/test_1.py index f437e889..d3f879f5 100755 --- a/src/tests/Test/test_1.py +++ b/src/tests/Test/test_1.py @@ -21,7 +21,7 @@ Python script for HOMARD Test test_1 """ -__revision__ = "V4.04" +__revision__ = "V4.05" #======================================================================== TEST_NAME = "test_1" @@ -175,6 +175,7 @@ Python script for HOMARD scriptfile = os.path.normpath(scriptfile) dirname = DIRCASE yacs_test_1 = case_test_1.CreateYACSSchema("YACS_test_1", scriptfile, dirname, mesh_file) + yacs_test_1.SetMaxIter(N_ITER_TEST_FILE) error = yacs_test_1.Write() if error : error = 4 diff --git a/src/tests/Test/test_2.py b/src/tests/Test/test_2.py index 846f691f..ccad6faa 100755 --- a/src/tests/Test/test_2.py +++ b/src/tests/Test/test_2.py @@ -21,7 +21,7 @@ Python script for HOMARD Test test_2 """ -__revision__ = "V4.04" +__revision__ = "V4.05" #======================================================================== TEST_NAME = "test_2" @@ -144,7 +144,7 @@ Python script for HOMARD 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) diff --git a/src/tests/Test/test_3.py b/src/tests/Test/test_3.py index 9b1b9790..3c14a560 100755 --- a/src/tests/Test/test_3.py +++ b/src/tests/Test/test_3.py @@ -21,13 +21,13 @@ Python script for HOMARD Test test_3 """ -__revision__ = "V4.05" +__revision__ = "V4.06" #======================================================================== TEST_NAME = "test_3" DEBUG = False -N_BOUCLE = 2 N_ITER_TEST_FILE = 2 +N_BOUCLE = 2 #======================================================================== import os import sys @@ -144,7 +144,7 @@ Python script for HOMARD print("-------- Creation of the schema", yacsname) yacs_test_3 = case_test_3.CreateYACSSchema(yacsname, scriptfile, dirname, mesh_file) yacs_test_3.SetType(2) - yacs_test_3.SetMaxIter(2) + yacs_test_3.SetMaxIter(N_ITER_TEST_FILE) error = yacs_test_3.Write() if error : error = 10*num + 5