Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / ex12_grid17partition.py
index 3d4b67b66ca2b08a0712b369ac82adb77153252e..fb940d59bfe3fd2ed9fc0b5528452f2cbad4314d 100644 (file)
@@ -143,7 +143,9 @@ hexa.Hexahedron()
 # Mesh calculus
 # -------------
 
-hexa.Compute()
+isDone = hexa.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 t3= time.time()