in Mesh.Compute(), report hypothesis errors even if compute() returns OK

This commit is contained in:
eap 2008-04-23 07:02:52 +00:00
parent 570bbfb2ff
commit 95f6a1059b

View File

@ -732,7 +732,7 @@ class Mesh:
import traceback import traceback
print "Mesh computation failed, exception caught:" print "Mesh computation failed, exception caught:"
traceback.print_exc() traceback.print_exc()
if not ok: if True:#not ok:
errors = self.smeshpyD.GetAlgoState( self.mesh, geom ) errors = self.smeshpyD.GetAlgoState( self.mesh, geom )
allReasons = "" allReasons = ""
for err in errors: for err in errors:
@ -768,7 +768,8 @@ class Mesh:
if allReasons != "": if allReasons != "":
print '"' + GetName(self.mesh) + '"',"has not been computed:" print '"' + GetName(self.mesh) + '"',"has not been computed:"
print allReasons print allReasons
else: ok = False
elif not ok:
print '"' + GetName(self.mesh) + '"',"has not been computed." print '"' + GetName(self.mesh) + '"',"has not been computed."
pass pass
pass pass