Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / doc / examples / defining_hypotheses_ex14.py
index accc5879b012b2c72bd5b22baad20a490eca17ec..bc7ce0b993f590df54d637fef9fff2772e79c95d 100644 (file)
@@ -28,4 +28,4 @@ Nb_Segments_1 = Regular_1D.NumberOfSegments(10)
 Quadrangle_2D = Mesh_1.Quadrangle().TriangleVertex( triaVertex )
 
 # Compute the mesh
-Mesh_1.Compute()
+if not Mesh_1.Compute(): raise Exception("Error when computing Mesh")