Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / doc / examples / defining_hypotheses_ex07.py
index 7295778f0b239d62f078d677f18fec99d814268c..3cc6860bc9f832c517ec7cb390f6909ef0c14cbf 100644 (file)
@@ -33,4 +33,4 @@ algo2D = tria.Triangle()
 algo2D.LengthFromEdges()
 
 # compute the mesh
-tria.Compute()
+if not tria.Compute(): raise Exception("Error when computing Mesh")