- print(hyponame_3, " : zones utilisées :", hypo_4_3.GetZones())
- print(hyponame_3, " : champ utilisé :", hypo_4_3.GetFieldName())
- print(hyponame_3, " : composantes utilisées :", hypo_4_3.GetComps())
- if ( len (hypo_4_3.GetFieldName()) > 0 ) :
- print(".. caractéristiques de l'adaptation :", hypo_4_3.GetField())
- print(hyponame_3, " : champs interpolés :", hypo_4_3.GetFieldInterps())
- #
- # Creation of the cases
- # =====================
- # Creation of the case
- print("-------- Creation of the case", TEST_NAME)
- mesh_file = os.path.join(DIRCASE, 'maill.00.med')
- case_test_4 = HOMARD.CreateCase(TEST_NAME, 'MESH', mesh_file)
- case_test_4.SetDirName(DIRCASE)
- #
- # Creation of the iterations
- # ==========================
- # Creation of the iteration 1
+ print(hyponame[2], " : zones utilisées : {}".format(hypo_4_3.GetZones()))
+ print(hyponame[2], " : champ utilisé : {}".format(hypo_4_3.GetFieldName()))
+ print(hyponame[2], " : composantes utilisées : {}".format(hypo_4_3.GetComps()))
+ if len (hypo_4_3.GetFieldName()):
+ print(".. caractéristiques de l'adaptation : {}".format(hypo_4_3.GetField()))
+ print(hyponame[2], " : champs interpolés : {}".format(hypo_4_3.GetFieldInterps()))
+
+ break
+
+ return error, hyponame
+
+#========================================================================
+
+#========================================================================
+def homard_exec_iter(case_test_4, hyponame):
+ """Python script for HOMARD - Creation of the iterations"""
+
+ error = 0
+ while not error :
+
+# 1. Creation of the iteration 1