Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / ex29_refine.py
index 6624489980a982c5acf9c964ce09477fd7da21ef..d6148a15a9341b1199efb5529c9c9ec1d47594ef 100644 (file)
@@ -170,7 +170,9 @@ refine(MyMesh, P2, P3, 12, 14, "Haut"  )
 algo2D = MyMesh.Triangle()
 algo2D.MaxElementArea(0.07)
 
-MyMesh.Compute()
+isDone = MyMesh.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 MyMesh.ExportMED(path+"110_triangles.med", 0)