X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fexamples%2Ftest_homard_adapt.py;fp=doc%2Fexamples%2Ftest_homard_adapt.py;h=9f3672b636fcefa257037cdf53b70e730887259d;hb=1ade5b188481247c04b3cecbe8405588f78c6803;hp=0e250eee0269375cc9455af138478bbfb2b05eca;hpb=d1392dc0345fb940899baa1121b9230843e47346;p=modules%2Fsmesh.git diff --git a/doc/examples/test_homard_adapt.py b/doc/examples/test_homard_adapt.py index 0e250eee0..9f3672b63 100644 --- a/doc/examples/test_homard_adapt.py +++ b/doc/examples/test_homard_adapt.py @@ -40,7 +40,7 @@ smeshhomard.SetLogInFile(True) smeshhomard.SetLogFile(log_file_1) smeshhomard.SetRemoveLogOnSuccess(False) smeshhomard.SetVerboseLevel(3) -smeshhomard.Compute() +if not smeshhomard.Compute(): raise Exception("Error when computing Mesh") if osp.isfile(output_med_1): os.remove(output_med_1) @@ -79,7 +79,7 @@ smeshhomard.SetLogInFile(True) smeshhomard.SetLogFile(log_file_2) smeshhomard.SetRemoveLogOnSuccess(True) smeshhomard.SetVerboseLevel(0) -smeshhomard.Compute() +if not smeshhomard.Compute(): 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")