# -*- coding: latin-1 -*-
-# Copyright (C) 2009-2012 CEA/DEN, EDF R&D
+# Copyright (C) 2009-2024 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
## #=================================================
# vertices :
-for key, value in dic_vert_names.iteritems():
+for key, value in list(dic_vert_names.items()):
geompy.addToStudy(geom_vert_grd[value], key + '_g')
geompy.addToStudy(geom_vert_pte[value], key + '_p')
# edges :
-for key, value in dic_edge_names.iteritems():
+for key, value in list(dic_edge_names.items()):
geompy.addToStudy(all_edges_bielle[value], key)
#====================================
# G�n�rer des maillages
#====================================
-print " --- MAILLAGE HEXAHEDRIQUE --- "
+print(" --- MAILLAGE HEXAHEDRIQUE --- ")
mesh_hexas = hexablock.mesh(doc)
## print "Nombre d hexaedres:", mesh_hexas.NbHexas()