Python script for HOMARD
Test test_1
"""
-__revision__ = "V4.04"
+__revision__ = "V4.05"
#========================================================================
TEST_NAME = "test_1"
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
Python script for HOMARD
Test test_2
"""
-__revision__ = "V4.04"
+__revision__ = "V4.05"
#========================================================================
TEST_NAME = "test_2"
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)
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
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