mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-24 19:30:34 +05:00
parent
24a076474b
commit
0e0472b608
6
src/Tools/blocFissure/CasTests/blocFissureTest.py
Normal file → Executable file
6
src/Tools/blocFissure/CasTests/blocFissureTest.py
Normal file → Executable file
@ -429,7 +429,7 @@ Le(s) numéro/nom du/des tests à passer. Si aucun n'est donné, tous les cas so
|
||||
else:
|
||||
nom = cas.nomProbleme
|
||||
texte_a = "\n=== Exécution du cas n° {}, '{}'".format(NREF_PB[nom],nom)
|
||||
logging.critical(ligne+texte_a)
|
||||
logging.critical((ligne+texte_a).encode('utf-8'))
|
||||
|
||||
try:
|
||||
ok_maillage = cas.executeProbleme()
|
||||
@ -470,8 +470,8 @@ Le(s) numéro/nom du/des tests à passer. Si aucun n'est donné, tous les cas so
|
||||
texte += ". Nombre de cas_tests NOOK : {}\n".format(nb_cas_nook)
|
||||
else:
|
||||
texte += "Les {} tests se sont bien passés.\n".format(nb_cas)
|
||||
print (texte+ligne)
|
||||
logging.critical(ligne+texte)
|
||||
print ((texte+ligne).encode('utf-8'))
|
||||
logging.critical((ligne+texte).encode('utf-8'))
|
||||
|
||||
return texte
|
||||
|
||||
|
4
src/Tools/blocFissure/gmu/getStatsMaillageFissure.py
Normal file → Executable file
4
src/Tools/blocFissure/gmu/getStatsMaillageFissure.py
Normal file → Executable file
@ -48,7 +48,7 @@ def getStatsMaillageFissure(maillage, referencesMaillageFissure, maillageFissure
|
||||
|
||||
text_2 = ""
|
||||
ok_maillage = True
|
||||
with open(fichierStatMaillageFissure, "w") as fic_stat :
|
||||
with open(fichierStatMaillageFissure, "w", encoding='utf-8') as fic_stat :
|
||||
|
||||
# Le nombre de quadrangles ou d'hexaèdres doit être rigoureusement identique
|
||||
for key in ('Entity_Quad_Quadrangle', 'Entity_Quad_Hexa'):
|
||||
@ -89,6 +89,6 @@ def getStatsMaillageFissure(maillage, referencesMaillageFissure, maillageFissure
|
||||
with open(fichierNewRef, "w") as fic_info :
|
||||
fic_info.write(text_2[:-4]+" \\")
|
||||
|
||||
print (text)
|
||||
print (text.encode('utf-8'))
|
||||
|
||||
return ok_maillage
|
||||
|
Loading…
Reference in New Issue
Block a user