Salome HOME
Generalize "Cancel Compute" mechanism to be able to report
authoreap <eap@opencascade.com>
Fri, 20 Jul 2012 16:10:45 +0000 (16:10 +0000)
committereap <eap@opencascade.com>
Fri, 20 Jul 2012 16:10:45 +0000 (16:10 +0000)
"Computation canceled" instead of "Algorithm failed" as failure reason

+    COMPERR_CANCELED         // compute canceled

idl/SMESH_Gen.idl

index f11fafdfb2076759b5eb75c0e0bdfd106b961065..f6e9f89adb4a842a1e94907e9249353c52121fd9 100644 (file)
@@ -100,7 +100,8 @@ module SMESH
     COMPERR_MEMORY_PB     ,  // memory allocation problem
     COMPERR_ALGO_FAILED   ,  // computation failed
     COMPERR_BAD_SHAPE     ,  // bad geometry
-    COMPERR_WARNING          // algo reports error but sub-mesh is computed anyway
+    COMPERR_WARNING       ,  // algo reports error but sub-mesh is computed anyway
+    COMPERR_CANCELED         // compute canceled
   };
   struct ComputeError
   {