# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()
+import time
+t1= time.time()
+
# Geometry
# ========
-# grid compound of 17 x 17 elements
+# grid compound of 3 x 3 elements
# an element is compound of 3 concentric cylinders
# an element is centered in a square of the grid
g_rayon2 = 30
g_rayon3 = 40
-g_grid = 17
+g_grid = 3
g_trim = 1000
piece_id = geompy.addToStudy(piece, "ex12_grid17partition")
+t2= time.time()
+
# Meshing
# =======
hexa.Compute()
+t3= time.time()
+
+print ("time geom",t2-t1)
+print ("time mesh",t3-t2 )
+
# Update object browser
# ---------------------