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]
/
src
/
SMESH_PY
/
smeshstudytools.py
diff --git
a/src/SMESH_PY/smeshstudytools.py
b/src/SMESH_PY/smeshstudytools.py
index 859b5c25cbe8786843e2894445cec2e47a89a78e..8d2edd7292f30d2b721ee479e907b22d5b18c939 100644
(file)
--- a/
src/SMESH_PY/smeshstudytools.py
+++ b/
src/SMESH_PY/smeshstudytools.py
@@
-203,6
+203,8
@@
def TEST_createBoxMesh():
Hexa_3D = smesh.CreateHypothesis('Hexa_3D')
status = boxmesh.AddHypothesis(Hexa_3D)
isDone = boxmesh.Compute()
+ if not isDone:
+ raise Exception("Error when computing Mesh")
smesh.SetName(boxmesh.GetMesh(), 'boxmesh')
if salome.sg.hasDesktop():