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_test.py
diff --git
a/test/SMESH_test.py
b/test/SMESH_test.py
index bf71253cce52f2a682f95429a07ad1a2126c8021..059663e3c3fa1f491e8d5f851ac6538aaf038aaf 100644
(file)
--- a/
test/SMESH_test.py
+++ b/
test/SMESH_test.py
@@
-94,6
+94,9
@@
face = salome.IDToObject(idf)
ret = mesh.Compute(face)
print(ret)
+if not ret:
+ raise Exception("Error when computing Mesh")
+
log = [] #mesh.GetLog(0) # 0 - GetLog without ClearLog after, else if 1 - ClearLog after
for a in log:
print("-------")