Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / SMESH_freebord.py
index 90e2f1226258b345e208623dcdc732d433d079f4..bee8167c260be54c8975248beec55ae88da51e7e 100644 (file)
@@ -59,8 +59,9 @@ algoMef = mesh.Triangle()
 hypArea = algoMef.MaxElementArea(20)
 
 
-mesh.Compute()
-
+isDone = mesh.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 # Criterion : Free edges. Create group.