]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
in Mesh.Compute(), report hypothesis errors even if compute() returns OK
authoreap <eap@opencascade.com>
Wed, 23 Apr 2008 07:02:52 +0000 (07:02 +0000)
committereap <eap@opencascade.com>
Wed, 23 Apr 2008 07:02:52 +0000 (07:02 +0000)
src/SMESH_SWIG/smeshDC.py

index 96d8756b66c564d1a5be9b3840ead10af099d5b6..462eee2550368042ff03a052b6e4616bf9d7d21e 100644 (file)
@@ -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