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
/
SMESH_Sphere.py
diff --git
a/test/SMESH_Sphere.py
b/test/SMESH_Sphere.py
index b61ecc2c60749a8e8a9f39b6a152bdba3d1224ae..42cad67393db64bfc0c87904a26da23d5ef76aea 100644
(file)
--- a/
test/SMESH_Sphere.py
+++ b/
test/SMESH_Sphere.py
@@
-116,6
+116,8
@@
algo = my_hexa.Segment()
algo.NumberOfSegments(NbSeg)
my_hexa.Quadrangle()
my_hexa.Hexahedron()
-my_hexa.Compute()
+isDone = my_hexa.Compute()
+if not isDone:
+ raise Exception("Error when computing Mesh")
salome.sg.updateObjBrowser()