mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 18:00:34 +05:00
Les cas à passer : ok et pb
This commit is contained in:
parent
850c52d788
commit
3a2e0de7aa
@ -33,9 +33,15 @@ from blocFissure.gmu import initLog
|
|||||||
runall = True
|
runall = True
|
||||||
if runall:
|
if runall:
|
||||||
torun = [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
torun = [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
||||||
else: #prob 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27
|
else: # 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27
|
||||||
torun = [ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1] # pb
|
torunOK = [ 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0] # OK
|
||||||
torun = [ 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0] # OK
|
torunPB = list()
|
||||||
|
for iaux in torunOK:
|
||||||
|
torunPB.append((iaux+1)%2)
|
||||||
|
print ("torun = {} # OK".format(torunOK))
|
||||||
|
print ("torun = {} # PB".format(torunPB))
|
||||||
|
torun = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]
|
||||||
|
# 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27
|
||||||
# -----------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
from blocFissure.gmu import geomsmesh
|
from blocFissure.gmu import geomsmesh
|
||||||
@ -170,6 +176,8 @@ problemes.append(fissureCoude_9(n_cas))
|
|||||||
n_cas += 1
|
n_cas += 1
|
||||||
from blocFissure.CasTests.fissure_Coude import fissure_Coude
|
from blocFissure.CasTests.fissure_Coude import fissure_Coude
|
||||||
problemes.append(fissure_Coude(n_cas))
|
problemes.append(fissure_Coude(n_cas))
|
||||||
|
# mailleFacesFissure : Erreur au calcul du maillage
|
||||||
|
# "Source elements overlap one another" dans l'import du fonds de fissure
|
||||||
|
|
||||||
n_cas += 1
|
n_cas += 1
|
||||||
from blocFissure.CasTests.fissure_Coude_4 import fissure_Coude_4
|
from blocFissure.CasTests.fissure_Coude_4 import fissure_Coude_4
|
||||||
@ -192,8 +200,8 @@ while True:
|
|||||||
|
|
||||||
ligne = "---------------------------------------------------------------------"
|
ligne = "---------------------------------------------------------------------"
|
||||||
texte = ""
|
texte = ""
|
||||||
n_cas_ok = 0
|
nb_cas_ok = 0
|
||||||
n_cas_nook = 0
|
nb_cas_nook = 0
|
||||||
for n_cas, cas in enumerate(problemes):
|
for n_cas, cas in enumerate(problemes):
|
||||||
#print ("Cas n° {}, '{}'".format(n_cas,cas.nomProbleme))
|
#print ("Cas n° {}, '{}'".format(n_cas,cas.nomProbleme))
|
||||||
if torun[n_cas]:
|
if torun[n_cas]:
|
||||||
@ -210,17 +218,18 @@ while True:
|
|||||||
texte += "Problème avec le cas n° {}, '{}'\n".format(n_cas,nom)
|
texte += "Problème avec le cas n° {}, '{}'\n".format(n_cas,nom)
|
||||||
ok_maillage = False
|
ok_maillage = False
|
||||||
if ok_maillage:
|
if ok_maillage:
|
||||||
n_cas_ok += 1
|
nb_cas_ok += 1
|
||||||
else:
|
else:
|
||||||
n_cas_nook += 1
|
nb_cas_nook += 1
|
||||||
print(ligne)
|
print(ligne)
|
||||||
|
|
||||||
if ( (n_cas_nook+n_cas_ok) > 1):
|
nb_cas = nb_cas_nook + nb_cas_ok
|
||||||
if n_cas_nook:
|
if ( nb_cas > 1):
|
||||||
texte += ". Nombre de cas_tests OK : {}\n".format(n_cas_ok)
|
if nb_cas_nook:
|
||||||
texte += ". Nombre de cas_tests NOOK : {}\n".format(n_cas_nook)
|
texte += ". Nombre de cas_tests OK : {}\n".format(nb_cas_ok)
|
||||||
|
texte += ". Nombre de cas_tests NOOK : {}\n".format(nb_cas_nook)
|
||||||
else:
|
else:
|
||||||
texte += "Tous les tests se sont bien passés.\n"
|
texte += "Les {} tests se sont bien passés.\n".format(nb_cas)
|
||||||
print (texte+ligne)
|
print (texte+ligne)
|
||||||
|
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user