X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test%2Fex30_groupsOp.py;h=0700e1202a583045375d11a709ce2edf576d4d5c;hb=7e714e8fc0d0884011007c9daed6e6e492402693;hp=db186bca3381ab90c51cbed4862fc908622d1311;hpb=4cf07a14111e98e8889620ee7e6371574c31a50c;p=modules%2Fsmesh.git diff --git a/test/ex30_groupsOp.py b/test/ex30_groupsOp.py index db186bca3..0700e1202 100644 --- a/test/ex30_groupsOp.py +++ b/test/ex30_groupsOp.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2023 CEA/DEN, EDF R&D, 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