Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / SMESH_test1_AndDisplay.py
index eda63d90f6c30dbe2dd0a266017f1a896f13edc2..a5cd78a61a689cd75154ccfa800018b78f97d03f 100644 (file)
@@ -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()