From b0362f710907f1c99ff7713fd3898e05933cf226 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 7 Nov 2012 08:30:39 +0000 Subject: [PATCH] 0021942: [CEA 700] Behavior of the Mesh.Triangle(algo=smesh.NETGEN) command In Compute(), report on hiding algo --- src/SMESH_SWIG/smeshDC.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 6f2b63e79..18c66f2c4 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -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 -- 2.39.2