From 071231ff09154f2e66fb1e0279f8895520778981 Mon Sep 17 00:00:00 2001 From: GERALD NICOLAS Date: Tue, 18 Sep 2018 15:42:28 +0200 Subject: [PATCH] =?utf8?q?Nombre=20maximal=20d'it=C3=A9rations=20du=20sch?= =?utf8?q?=C3=A9ma=20YACS?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/tests/Test/test_1.py | 3 ++- src/tests/Test/test_2.py | 4 ++-- src/tests/Test/test_3.py | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) 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 -- 2.39.2