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_GroupLyingOnGeom.py
diff --git
a/test/SMESH_GroupLyingOnGeom.py
b/test/SMESH_GroupLyingOnGeom.py
index 8af4bfa6a44b45a9c148e5f18412598ecc941e6a..06ff151317daeaa2db852daa1550ffb0f73ce8e6 100644
(file)
--- a/
test/SMESH_GroupLyingOnGeom.py
+++ b/
test/SMESH_GroupLyingOnGeom.py
@@
-39,7
+39,9
@@
def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
#Example
from SMESH_test1 import *
-mesh.Compute()
+isDone = mesh.Compute()
+if not isDone:
+ raise Exception("Error when computing Mesh")
# First way
BuildGroupLyingOn(mesh.GetMesh(), SMESH.FACE, "Group of faces lying on edge #1", edge )