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