From: michael Date: Fri, 5 Nov 2021 21:58:00 +0000 (+0100) Subject: Updated python script with new MEDCoupling int64 types X-Git-Tag: V9_8_0~64 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aac4077723280a344ecf1a64d85aa6289b5348f9;p=tools%2Fsolverlab.git Updated python script with new MEDCoupling int64 types --- diff --git a/CDMATH/tests/ressources/scripts/weird_mesh.py b/CDMATH/tests/ressources/scripts/weird_mesh.py index b26afcb..6a5c770 100644 --- a/CDMATH/tests/ressources/scripts/weird_mesh.py +++ b/CDMATH/tests/ressources/scripts/weird_mesh.py @@ -36,7 +36,7 @@ def getWeirdMesh(xmin, xmax, ymin, ymax, lx, ly, str, func=None, extr=-1, unpo=F off += len(p) mesh.finishInsertingCells() - pts = [p for i in xange(len(polys)) for p in polys[i]] + pts = [p for i in range(len(polys)) for p in polys[i]] co = ml.DataArrayDouble(pts, len(pts), 2) mesh.setCoords(co) @@ -76,7 +76,7 @@ def getWeirdMesh(xmin, xmax, ymin, ymax, lx, ly, str, func=None, extr=-1, unpo=F for idx, b in enumerate(bf): if abs(b[i] - [[xmin, xmax], [ymin, ymax], [0., 1.]][i][j]) < 1e-5: g.append(idx) - grp = ml.DataArrayIdType.New(g) + grp = ml.DataArrayInt64.New(g) grp.setName(noms_cl[i][j]) mm.addGroup(-1, grp)