Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / doc / examples / defining_hypotheses_ex01.py
index 734c7ea02e9b2e73926e2168ac531bb90b961cc8..48571de5fc53f37cc4c9ded8d7ddbf39fedd0144 100644 (file)
@@ -40,4 +40,4 @@ hexa.Quadrangle()
 hexa.Hexahedron()
 
 # compute the mesh
-hexa.Compute()
+if not hexa.Compute(): raise Exception("Error when computing Mesh")