Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / ex19_sphereINcube.py
index 91bb1155aed582756474f66ef20785f036f390b3..a393fab76449e6666a0fe6d6bfd91facaf74e5c6 100644 (file)
@@ -180,7 +180,9 @@ hexa.Hexahedron()
 # Mesh calculus
 # -------------
 
-hexa.Compute()
+isDone = hexa.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 # Le groupe de mailles
 # --------------------