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_test1_AndDisplay.py
diff --git
a/test/SMESH_test1_AndDisplay.py
b/test/SMESH_test1_AndDisplay.py
index eda63d90f6c30dbe2dd0a266017f1a896f13edc2..a5cd78a61a689cd75154ccfa800018b78f97d03f 100644
(file)
--- a/
test/SMESH_test1_AndDisplay.py
+++ b/
test/SMESH_test1_AndDisplay.py
@@
-109,7
+109,9
@@
print(hypArea2.GetId())
print(hypArea2.GetMaxElementArea())
smesh.SetName(hypArea2, "MaxElementArea_500")
-mesh.Compute()
+isDone = mesh.Compute()
+if not isDone:
+ raise Exception("Error when computing Mesh")
salome.sg.updateObjBrowser()