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_ex12.py
diff --git
a/doc/examples/defining_hypotheses_ex12.py
b/doc/examples/defining_hypotheses_ex12.py
index d7f9ff5b6af07b66472c127906d7e0521d04fb0e..d391b5f2141b1b6b221321607494342a24178271 100644
(file)
--- a/
doc/examples/defining_hypotheses_ex12.py
+++ b/
doc/examples/defining_hypotheses_ex12.py
@@
-37,4
+37,4
@@
Mesh_1.AddHypothesis(Fixed_points_1D_1)
Regular_1D = Mesh_1.Segment()
Quadrangle_2D = Mesh_1.Quadrangle()
# Compute mesh
-
Mesh_1.Compute(
)
+
if not Mesh_1.Compute(): raise Exception("Error when computing Mesh"
)