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
Fix Compute for Homard
[modules/smesh.git]
/
doc
/
examples
/
test_uniform_refinement.py
diff --git
a/doc/examples/test_uniform_refinement.py
b/doc/examples/test_uniform_refinement.py
index b0e12e3709ae7c840e9bcdfac862ebbf22edd905..1b362b0e88c9fcb19b134e2ff8a381a90f9bb201 100644
(file)
--- a/
doc/examples/test_uniform_refinement.py
+++ b/
doc/examples/test_uniform_refinement.py
@@
-42,7
+42,7
@@
smeshhomard.SetLogInFile(True)
smeshhomard.SetLogFile(log_file_1)
smeshhomard.SetRemoveLogOnSuccess(False)
smeshhomard.SetVerboseLevel(3)
smeshhomard.SetLogFile(log_file_1)
smeshhomard.SetRemoveLogOnSuccess(False)
smeshhomard.SetVerboseLevel(3)
-if
not smeshhomard.Compute()
: raise Exception("Error when computing Mesh")
+if
smeshhomard.Compute() != 0
: raise Exception("Error when computing Mesh")
if osp.isfile(output_med_1):
os.remove(output_med_1)
if osp.isfile(output_med_1):
os.remove(output_med_1)
@@
-85,7
+85,7
@@
smeshhomard.SetLogInFile(True)
smeshhomard.SetLogFile(log_file_2)
smeshhomard.SetRemoveLogOnSuccess(True)
smeshhomard.SetVerboseLevel(0)
smeshhomard.SetLogFile(log_file_2)
smeshhomard.SetRemoveLogOnSuccess(True)
smeshhomard.SetVerboseLevel(0)
-if
not smeshhomard.Compute()
: raise Exception("Error when computing Mesh")
+if
smeshhomard.Compute() != 0
: raise Exception("Error when computing Mesh")
if osp.isfile(output_med_2):
print("Test Uniform refinement Case 2: Error: output med file has not been removed")
if osp.isfile(output_med_2):
print("Test Uniform refinement Case 2: Error: output med file has not been removed")