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