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]
/
doc
/
examples
/
quality_controls_ex12.py
diff --git
a/doc/examples/quality_controls_ex12.py
b/doc/examples/quality_controls_ex12.py
index a76fa3543c7c9d229b5d0687b31bd2abe6c0aae0..1e875a8ca4b2297a34f23b9aca11e172ee3e29f7 100644
(file)
--- a/
doc/examples/quality_controls_ex12.py
+++ b/
doc/examples/quality_controls_ex12.py
@@
-23,7
+23,7
@@
algo = mesh.Segment()
algo.NumberOfSegments(5)
algo = mesh.Triangle()
algo.MaxElementArea(20.)
-mesh.Compute()
+if not mesh.Compute(): raise Exception("Error when computing Mesh")
# Criterion : MULTI-CONNECTION 2D = 3
nb_conn = 3