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