From aac4077723280a344ecf1a64d85aa6289b5348f9 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 5 Nov 2021 22:58:00 +0100 Subject: [PATCH] Updated python script with new MEDCoupling int64 types --- CDMATH/tests/ressources/scripts/weird_mesh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2