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
/
defining_hypotheses_adaptive1d.py
diff --git
a/doc/examples/defining_hypotheses_adaptive1d.py
b/doc/examples/defining_hypotheses_adaptive1d.py
index d28342a199ab83d274696e0daaeb0a8f9e3798ed..e0f567a2ae524c9425542050e7e8a93e3a7e2297 100644
(file)
--- a/
doc/examples/defining_hypotheses_adaptive1d.py
+++ b/
doc/examples/defining_hypotheses_adaptive1d.py
@@
-31,4
+31,4
@@
deflection = 0.05
mesh = smesh_builder.Mesh( shape )
mesh.Segment().Adaptive( minSize, maxSize, deflection )
mesh.Triangle().MaxElementArea( 300 )
-
mesh.Compute(
)
+
if not mesh.Compute(): raise Exception("Error when computing Mesh"
)