From 95f6a1059b0691a04fbb8046ffa1a27eb07b69a4 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 23 Apr 2008 07:02:52 +0000 Subject: [PATCH] in Mesh.Compute(), report hypothesis errors even if compute() returns OK --- src/SMESH_SWIG/smeshDC.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2