Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / SMESH_Sphere.py
index b61ecc2c60749a8e8a9f39b6a152bdba3d1224ae..42cad67393db64bfc0c87904a26da23d5ef76aea 100644 (file)
@@ -116,6 +116,8 @@ algo = my_hexa.Segment()
 algo.NumberOfSegments(NbSeg)
 my_hexa.Quadrangle()
 my_hexa.Hexahedron()
-my_hexa.Compute()
+isDone = my_hexa.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 salome.sg.updateObjBrowser()