Salome HOME
Fix Compute for Homard
[modules/smesh.git] / doc / examples / test_homard_adapt.py
index 9f3672b636fcefa257037cdf53b70e730887259d..0c1d88fe7f1791381a8f6bff854e76f59b794d8c 100644 (file)
@@ -40,7 +40,7 @@ smeshhomard.SetLogInFile(True)
 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)
@@ -79,7 +79,7 @@ smeshhomard.SetLogInFile(True)
 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")