Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / ex24_cylinder.py
index 2946be21f918b4b226aa10e8da70de32d2187dab..bd45eb3362c8b6ebb768b8a23ab7b291ea1e68ee 100644 (file)
@@ -125,7 +125,9 @@ discretize(        +radius,       0, height/2,  20)
 hexa.Quadrangle()
 hexa.Hexahedron()
 
-hexa.Compute()
+isDone = hexa.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 hexa.Group(group_a)
 hexa.Group(group_b)