Salome HOME
[bos #40505][CEA] Allow assign of 3D Tetra paramam on imported 2D mesh.
[modules/smesh.git] / test / SMESH_test2.py
index 1bc3d99b68f99d43a0559d3dd720884f969c8824..9b24bd9373633cc6e6b7a9e40ba9dacd651f8cec 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
@@ -31,6 +31,9 @@ from SMESH_test1 import *
 print("-------------------------- compute box")
 ret = mesh.Compute()
 print(ret)
+if not ret:
+    raise Exception("Error when computing Mesh")
+
 log = mesh.GetLog(0); # no erase trace
 # for linelog in log:
 #     print(linelog)