Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / ex09_grid4build.py
index 1754c13d6457aa4cfcda55e7e2dc08cc4a7e7e6b..f79919cbeede1125387df77518e54a011d74d4eb 100644 (file)
@@ -140,7 +140,9 @@ hexa.Hexahedron()
 # Mesh calculus
 # -------------
 
-hexa.Compute()
+isDone = hexa.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 # Update object browser
 # ---------------------