Salome HOME
Merge branch 'V9_11_BR'
[modules/smesh.git] / test / PAL_MESH_043_2D.py
index 0e29c92321364976ef1714b63b3d644174e323c1..129aa4b6ff39481a6b97b84a2b7320aca00874e4 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 #
 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -76,8 +76,13 @@ hypNbSeg2 = algoReg2.NumberOfSegments(34)
 smesh.SetName(hypNbSeg2, "NumberOfSegments 2")
 
 # compute meshes
-mesh1.Compute()
-mesh2.Compute()
+isDone = mesh1.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
+
+isDone = mesh2.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 
 # ---- udate object browser