0021823: [CEA 649] Compute failed without any errors

report a warning if no elements are assigned to a sub-shape
This commit is contained in:
eap 2012-08-30 07:50:03 +00:00
parent 1cd00806c9
commit ff33a26505

View File

@ -1168,15 +1168,18 @@ class Mesh:
except: except:
shapeText = " on subshape #%s" % (err.subShapeID) shapeText = " on subshape #%s" % (err.subShapeID)
errText = "" errText = ""
stdErrors = ["OK", #COMPERR_OK stdErrors = ["OK", #COMPERR_OK
"Invalid input mesh", #COMPERR_BAD_INPUT_MESH "Invalid input mesh", #COMPERR_BAD_INPUT_MESH
"std::exception", #COMPERR_STD_EXCEPTION "std::exception", #COMPERR_STD_EXCEPTION
"OCC exception", #COMPERR_OCC_EXCEPTION "OCC exception", #COMPERR_OCC_EXCEPTION
"SALOME exception", #COMPERR_SLM_EXCEPTION "SALOME exception", #COMPERR_SLM_EXCEPTION
"Unknown exception", #COMPERR_EXCEPTION "Unknown exception", #COMPERR_EXCEPTION
"Memory allocation problem", #COMPERR_MEMORY_PB "Memory allocation problem", #COMPERR_MEMORY_PB
"Algorithm failed", #COMPERR_ALGO_FAILED "Algorithm failed", #COMPERR_ALGO_FAILED
"Unexpected geometry"]#COMPERR_BAD_SHAPE "Unexpected geometry", #COMPERR_BAD_SHAPE
"Warning", #COMPERR_WARNING
"Computation cancelled",#COMPERR_CANCELED
"No mesh on sub-shape"] #COMPERR_NO_MESH_ON_SHAPE
if err.code > 0: if err.code > 0:
if err.code < len(stdErrors): errText = stdErrors[err.code] if err.code < len(stdErrors): errText = stdErrors[err.code]
else: else: