Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / SMESH_mechanic_tetra.py
index d7b88ddfd2835cff39ec8a236f27efd668f651d5..902cb7139a7b1d499d87c9124decc20e02dba391 100644 (file)
@@ -147,7 +147,9 @@ smesh.SetName(hypVolume, "maxElementVolume_" + str(maxElementVolume))
 
 
 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_tetra:")
 print("Number of nodes       : ", mesh.NbNodes())