Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / doc / examples / defining_hypotheses_len_near_vertex.py
index f2f024ffda55778a87ee31a36b88b1ae1580b743..5fca17b5b006826897e551606187b90ebd621122 100644 (file)
@@ -28,4 +28,4 @@ mesh.Hexahedron()
 # define refinement near vertices
 algo1d.LengthNearVertex( 0.2 )
 
-mesh.Compute()
+if not mesh.Compute(): raise Exception("Error when computing Mesh")