mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 01:10:35 +05:00
Update by request of Nathalie GORE
This commit is contained in:
parent
b47d85eb4a
commit
6e356afaff
@ -50,8 +50,8 @@ def getStatsMaillageFissure(maillage, referencesMaillageFissure, maillageFissure
|
|||||||
ok_maillage = True
|
ok_maillage = True
|
||||||
with open(fichierStatMaillageFissure, "w") as fic_stat :
|
with open(fichierStatMaillageFissure, "w") as fic_stat :
|
||||||
|
|
||||||
# Le nombre d'arêtes, de quadrangles ou d'hexaèdres doit être rigoureusement identique
|
# Le nombre de quadrangles ou d'hexaèdres doit être rigoureusement identique
|
||||||
for key in ('Entity_Quad_Edge', 'Entity_Quad_Quadrangle', 'Entity_Quad_Hexa'):
|
for key in ('Entity_Quad_Quadrangle', 'Entity_Quad_Hexa'):
|
||||||
if d_resu[key] != referencesMaillageFissure[key]:
|
if d_resu[key] != referencesMaillageFissure[key]:
|
||||||
text = "Ecart"
|
text = "Ecart"
|
||||||
ok_maillage = False
|
ok_maillage = False
|
||||||
@ -62,9 +62,9 @@ def getStatsMaillageFissure(maillage, referencesMaillageFissure, maillageFissure
|
|||||||
fic_stat.write(text+"\n")
|
fic_stat.write(text+"\n")
|
||||||
text_2 += " {} = {}, \\\n".format(key,d_resu[key])
|
text_2 += " {} = {}, \\\n".format(key,d_resu[key])
|
||||||
|
|
||||||
# Le nombre de noeuds, de triangles, de tétraèdres ou de pyramides peut varier du fait des algorithmes. On tolère 5% d'écart.
|
# Le nombre de noeuds, d'arêtes, de triangles, de tétraèdres ou de pyramides peut varier du fait des algorithmes. On tolère 5% d'écart.
|
||||||
tolerance = 0.05
|
tolerance = 0.05
|
||||||
for key in ('Entity_Node', 'Entity_Quad_Triangle', 'Entity_Quad_Tetra', 'Entity_Quad_Pyramid', 'Entity_Quad_Penta'):
|
for key in ('Entity_Node', 'Entity_Quad_Edge', 'Entity_Quad_Triangle', 'Entity_Quad_Tetra', 'Entity_Quad_Pyramid', 'Entity_Quad_Penta'):
|
||||||
if d_resu[key] == referencesMaillageFissure[key]:
|
if d_resu[key] == referencesMaillageFissure[key]:
|
||||||
text = "Valeur_OK"
|
text = "Valeur_OK"
|
||||||
elif (d_resu[key] < (1.0 - tolerance)*referencesMaillageFissure[key]) \
|
elif (d_resu[key] < (1.0 - tolerance)*referencesMaillageFissure[key]) \
|
||||||
|
Loading…
Reference in New Issue
Block a user