Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / SMESH_mechanic_editor.py
index d1c4abedc55abb133b6db55c2d3dfa7027ff1f40..a82694b61480405bbefbfdee5c60f4548124a25e 100644 (file)
@@ -181,7 +181,9 @@ submesh4 = algo.GetSubMesh()
 
 print("-------------------------- compute the mesh of the mechanic piece")
 
-mesh.Compute()
+isDone = mesh.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 print("Information about the Mesh_mechanic:")
 print("Number of nodes       : ", mesh.NbNodes())