Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / doc / examples / defining_hypotheses_ex05.py
index 4b2d1a75bcdd3dc543d3c516cb2340c62da312ff..e18ccebb802ea04baa3e2881a66b7472e3336a7f 100644 (file)
@@ -40,4 +40,4 @@ algo = tria_mesh.Triangle()
 algo.MaxElementArea(100)
 
 # compute the mesh
-tria_mesh.Compute()
+if not tria_mesh.Compute(): raise Exception("Error when computing Mesh")