X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FTools%2FMacMesh%2FMacMesh%2FGenFunctions.py;h=c8067ab37b3e70bff5747021ea8e8f187684f1c8;hb=a274ade365bd0f0e19d56c577acc4a13aa1972a7;hp=1c476ec81a26c166c52993847cb936535bc742b6;hpb=5260bd00bd51567f6137d5ea7ae0564464c4290a;p=modules%2Fsmesh.git diff --git a/src/Tools/MacMesh/MacMesh/GenFunctions.py b/src/Tools/MacMesh/MacMesh/GenFunctions.py index 1c476ec81..c8067ab37 100644 --- a/src/Tools/MacMesh/MacMesh/GenFunctions.py +++ b/src/Tools/MacMesh/MacMesh/GenFunctions.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2016 EDF R&D +# Copyright (C) 2014-2021 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 @@ -27,10 +27,10 @@ import CutnGroup import CompositeBox from salome.geom import geomBuilder -geompy = geomBuilder.New( Config.theStudy ) +geompy = geomBuilder.New() from salome.smesh import smeshBuilder -smesh = smeshBuilder.New( Config.theStudy ) +smesh = smeshBuilder.New() ########################################################################################################## @@ -825,8 +825,7 @@ def IndexMultiOcc (Array,Element) : def SortList (ValList, CritList): Output = [] - SortedCritList = copy.copy(CritList) - SortedCritList.sort() + SortedCritList = sorted(copy.copy(CritList)) for i in range(0,len(ValList)): if i > 0 : if not(SortedCritList[i]==SortedCritList[i-1]):