Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / doc / examples / modifying_meshes_ex26.py
index b837d6a9c5336fe7bf2987a517c5499efc8cef9b..1a8ea2a237d9ba9095d2f9b27027fa58cc90e4d3 100644 (file)
@@ -23,7 +23,7 @@ Mesh.Tetrahedron()
 
 # compute mesh
 
-Mesh.Compute()
+if not Mesh.Compute(): raise Exception("Error when computing Mesh")
 
 # convert to quadratic
 # theForce3d = 1; this results in the medium node lying at the