Salome HOME
Updated copyright comment
[modules/smesh.git] / test / SMESH_Sphere.py
index b61ecc2c60749a8e8a9f39b6a152bdba3d1224ae..9fdc328e790baa2f393dc85eb67b7d90e4dc6471 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2024  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
@@ -116,6 +116,8 @@ algo = my_hexa.Segment()
 algo.NumberOfSegments(NbSeg)
 my_hexa.Quadrangle()
 my_hexa.Hexahedron()
-my_hexa.Compute()
+isDone = my_hexa.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 salome.sg.updateObjBrowser()