X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTEST_PY%2Ftest_unit%2FtroisCylindres_v5.py;h=7930486da347ae53f08fd897854f242259e55d5a;hb=8bf9123643544b132f72f14e5ab5141c897b3c3b;hp=9e42a3e07f046b1f076a67f4d5dea2b943694153;hpb=d2653597bfdcbc02089ac248dbee336ab7c01475;p=modules%2Fhexablock.git diff --git a/src/TEST_PY/test_unit/troisCylindres_v5.py b/src/TEST_PY/test_unit/troisCylindres_v5.py index 9e42a3e..7930486 100644 --- a/src/TEST_PY/test_unit/troisCylindres_v5.py +++ b/src/TEST_PY/test_unit/troisCylindres_v5.py @@ -1,10 +1,10 @@ # -*- coding: latin-1 -*- -# Copyright (C) 2009-2013 CEA/DEN, EDF R&D +# Copyright (C) 2009-2021 CEA/DEN, EDF R&D # # 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 @@ -125,8 +125,8 @@ croix = doc.makeCylinders(moy_p_cylindre, petit_cylindre) croix_quads = [] -for i in xrange(1, -1, -1): - for j in xrange( [hexablock.CV_MAXI_INT, hexablock.CV_MAXI_EXT][i] ): +for i in range(1, -1, -1): + for j in range( [hexablock.CV_MAXI_INT, hexablock.CV_MAXI_EXT][i] ): quad = croix.getQuadIJ(hexablock.CYL_BIG, i, j, hexablock.CYL_BIG_SLICES) croix_quads.append(quad) @@ -157,8 +157,8 @@ groupe_moyen_f = doc.addQuadGroup("Moyen") groupe_petit_a = doc.addQuadGroup("Petit_A") groupe_petit_b = doc.addQuadGroup("Petit_B") -for i in xrange(2): - for j in xrange( [hexablock.CV_MAXI_INT, hexablock.CV_MAXI_EXT][i] ): +for i in range(2): + for j in range( [hexablock.CV_MAXI_INT, hexablock.CV_MAXI_EXT][i] ): quad = en_te.getQuadIJ(hexablock.CYL_BIG , i, j, 0) groupe_grand_a.addElement(quad) @@ -181,12 +181,12 @@ groupe_grand = doc.addHexaGroup("Grand") groupe_moyen = doc.addHexaGroup("Moyen") groupe_petit = doc.addHexaGroup("Petit") -for i in xrange( doc.countUsedHexa() ): +for i in range( doc.countUsedHexa() ): h = doc.getUsedHexa(i) groupe_moyen.addElement(h) -for i in xrange(2): - for j in xrange( [hexablock.CV_MAXI_INT, hexablock.CV_MAXI_EXT][i] ): +for i in range(2): + for j in range( [hexablock.CV_MAXI_INT, hexablock.CV_MAXI_EXT][i] ): for k in [ 0, hexablock.CYL_BIG_SLICES-1 ]: h = en_te.getHexaIJK(hexablock.CYL_BIG, i, j, k) groupe_grand.addElement(h)