mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-01 03:25:36 +05:00
in Mesh.Compute(), report hypothesis errors even if compute() returns OK
This commit is contained in:
parent
570bbfb2ff
commit
95f6a1059b
@ -732,7 +732,7 @@ class Mesh:
|
||||
import traceback
|
||||
print "Mesh computation failed, exception caught:"
|
||||
traceback.print_exc()
|
||||
if not ok:
|
||||
if True:#not ok:
|
||||
errors = self.smeshpyD.GetAlgoState( self.mesh, geom )
|
||||
allReasons = ""
|
||||
for err in errors:
|
||||
@ -768,7 +768,8 @@ class Mesh:
|
||||
if allReasons != "":
|
||||
print '"' + GetName(self.mesh) + '"',"has not been computed:"
|
||||
print allReasons
|
||||
else:
|
||||
ok = False
|
||||
elif not ok:
|
||||
print '"' + GetName(self.mesh) + '"',"has not been computed."
|
||||
pass
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user