Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / ex31_dimGroup.py
index 9556189608adda72e9d7633aa47471223faf487c..8a92f546489675cc18f3234adad824e275c29bb2 100644 (file)
@@ -42,6 +42,8 @@ Nb_Segments_1.SetDistrType( 0 )
 Quadrangle_2D = Mesh_1.Quadrangle()
 Hexa_3D = Mesh_1.Hexahedron()
 isDone = Mesh_1.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 ### CreateDimGroup()