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_test4.py
diff --git
a/test/SMESH_test4.py
b/test/SMESH_test4.py
index c97b20ddbeb0fcfc89aa64f005c3d8a9b633cba0..b0396714257a0137415dc496c11cf60af9439c35 100644
(file)
--- a/
test/SMESH_test4.py
+++ b/
test/SMESH_test4.py
@@
-66,7
+66,9
@@
algo4.MaxElementArea(100)
submesh = algo4.GetSubMesh()
smesh.SetName(submesh, "SubMeshFace")
-mesh.Compute()
+isDone = mesh.Compute()
+if not isDone:
+ raise Exception("Error when computing Mesh")
faces = submesh.GetElementsByType(SMESH.FACE)
if len(faces) > 1: