Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / doc / examples / quality_controls_ex12.py
index a76fa3543c7c9d229b5d0687b31bd2abe6c0aae0..1e875a8ca4b2297a34f23b9aca11e172ee3e29f7 100644 (file)
@@ -23,7 +23,7 @@ algo = mesh.Segment()
 algo.NumberOfSegments(5)
 algo = mesh.Triangle()
 algo.MaxElementArea(20.)
-mesh.Compute() 
+if not mesh.Compute(): raise Exception("Error when computing Mesh")
 
 # Criterion : MULTI-CONNECTION 2D = 3
 nb_conn = 3