From: eap Date: Wed, 23 Apr 2008 07:02:52 +0000 (+0000) Subject: in Mesh.Compute(), report hypothesis errors even if compute() returns OK X-Git-Tag: V4_1_2rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=95f6a1059b0691a04fbb8046ffa1a27eb07b69a4;p=modules%2Fsmesh.git in Mesh.Compute(), report hypothesis errors even if compute() returns OK --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 96d8756b6..462eee255 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -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