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_ex11.py
diff --git
a/doc/examples/quality_controls_ex11.py
b/doc/examples/quality_controls_ex11.py
index 1b08179f1cc25cd9fbb825d8839790242b37c60b..731b3b01fa4ad91d509eca4922f4dda929e3218b 100644
(file)
--- a/
doc/examples/quality_controls_ex11.py
+++ b/
doc/examples/quality_controls_ex11.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 : Length 2D > 5.7
length_margin = 5.7