Salome HOME
0021942: [CEA 700] Behavior of the Mesh.Triangle(algo=smesh.NETGEN) command
authoreap <eap@opencascade.com>
Wed, 7 Nov 2012 08:30:39 +0000 (08:30 +0000)
committereap <eap@opencascade.com>
Wed, 7 Nov 2012 08:30:39 +0000 (08:30 +0000)
  In Compute(), report on hiding algo

src/SMESH_SWIG/smeshDC.py

index 6f2b63e7993b7ea25010f7988de5383188ea0102..18c66f2c43b805fdeff92ea303b309ec6b3d3623 100644 (file)
@@ -1225,9 +1225,13 @@ class Mesh:
                 elif err.state == HYP_BAD_GEOMETRY:
                     reason = ('%s %sD algorithm "%s" is assigned to mismatching'
                               'geometry' % ( glob, dim, name ))
+                elif err.state == HYP_HIDDEN_ALGO:
+                    reason = ('%s %sD algorithm "%s" is ignored due to presence of a %s '
+                              'algorithm of upper dimension generating %sD mesh'
+                              % ( glob, dim, name, glob, dim ))
                 else:
-                    reason = "For unknown reason."+\
-                             " Revise Mesh.Compute() implementation in smeshDC.py!"
+                    reason = ("For unknown reason. "
+                              "Developer, revise Mesh.Compute() implementation in smeshDC.py!")
                     pass
                 if allReasons != "":allReasons += "\n"
                 allReasons += "-  " + reason