Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check result of Compute() in test and examples
[modules/smesh.git]
/
test
/
ex24_cylinder.py
diff --git
a/test/ex24_cylinder.py
b/test/ex24_cylinder.py
index 2946be21f918b4b226aa10e8da70de32d2187dab..bd45eb3362c8b6ebb768b8a23ab7b291ea1e68ee 100644
(file)
--- a/
test/ex24_cylinder.py
+++ b/
test/ex24_cylinder.py
@@
-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)