Salome HOME
[bos #38052][EDF](2023-T3) Option to replace polyhedrons by hexahedrons in the body...
[modules/smesh.git] / test / ex30_groupsOp.py
index db186bca3381ab90c51cbed4862fc908622d1311..569aae745e1a9acbb64c5bd9b699f3d735ec1981 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
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -42,6 +42,8 @@ Nb_Segments_1 = Regular_1D.NumberOfSegments(10)
 Nb_Segments_1.SetDistrType( 0 )
 Quadrangle_2D = Mesh_1.Quadrangle()
 isDone = Mesh_1.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 # groups creation