mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-05 06:10:33 +05:00
0021559: EDF 2175 SMESH: Hexa/Tetra mixed meshes (Bug2175_mixed_hexa_tetra.py)
In Mesh.Compute(), detect failure by value returned from Mesh._mesh.Compute() and not by presence of messages
This commit is contained in:
parent
29bfee91ff
commit
0c8bff7618
@ -1181,7 +1181,7 @@ class Mesh:
|
||||
if errText: errText += ". "
|
||||
errText += err.comment
|
||||
if allReasons != "":allReasons += "\n"
|
||||
allReasons += '"%s" failed%s. Error: %s' %(err.algoName, shapeText, errText)
|
||||
allReasons += '- "%s" failed%s. Error: %s' %(err.algoName, shapeText, errText)
|
||||
pass
|
||||
|
||||
# Treat hyp errors
|
||||
@ -1212,15 +1212,16 @@ class Mesh:
|
||||
" Revise Mesh.Compute() implementation in smeshDC.py!"
|
||||
pass
|
||||
if allReasons != "":allReasons += "\n"
|
||||
allReasons += reason
|
||||
allReasons += "- " + reason
|
||||
pass
|
||||
if allReasons != "":
|
||||
print '"' + GetName(self.mesh) + '"',"has not been computed:"
|
||||
if not ok or allReasons != "":
|
||||
msg = '"' + GetName(self.mesh) + '"'
|
||||
if ok: msg += " has been computed with warnings"
|
||||
else: msg += " has not been computed"
|
||||
if allReasons != "": msg += ":"
|
||||
else: msg += "."
|
||||
print msg
|
||||
print allReasons
|
||||
ok = False
|
||||
elif not ok:
|
||||
print '"' + GetName(self.mesh) + '"',"has not been computed."
|
||||
pass
|
||||
pass
|
||||
if salome.sg.hasDesktop() and self.mesh.GetStudyId() >= 0:
|
||||
smeshgui = salome.ImportComponentGUI("SMESH")
|
||||
|
Loading…
Reference in New Issue
Block a user