Salome HOME
Updated copyright comment
[modules/homard.git] / src / tests / Test / test_3.py
index 87175a93f21e046b9d3a8474ef7fc6f1a7784468..c341608b5b19f579fcdc58f45648a0c8a1554d58 100755 (executable)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 2011-2016  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2024  CEA, EDF
 #
 # 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_3
 """
-__revision__ = "V4.04"
+__revision__ = "V4.06"
 
 #========================================================================
 TEST_NAME = "test_3"
 DEBUG = False
-N_BOUCLE = 2
 N_ITER_TEST_FILE = 2
+N_BOUCLE = 2
 #========================================================================
 import os
 import sys
@@ -47,7 +47,7 @@ from test_util import test_results
 REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG)
 # ==================================
 
-salome.salome_init()
+salome.salome_init_without_session()
 import iparameters
 IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
 IPAR.append("AP_MODULES_LIST", "Homard")
@@ -62,7 +62,7 @@ Python script for HOMARD
 #
   while not error :
   #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
   #
   # Creation of the boundaries
   # ==========================
@@ -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