From 0a58941c2e8c231af71b43cbd845b51921cb5184 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 5 Nov 2021 22:57:33 +0100 Subject: [PATCH] Updated python script with new MEDCoupling int64 types --- .../ressources/2DBrickWall/create_mesh_brickWall.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CDMATH/tests/ressources/2DBrickWall/create_mesh_brickWall.py b/CDMATH/tests/ressources/2DBrickWall/create_mesh_brickWall.py index bdd4e1e..b132425 100644 --- a/CDMATH/tests/ressources/2DBrickWall/create_mesh_brickWall.py +++ b/CDMATH/tests/ressources/2DBrickWall/create_mesh_brickWall.py @@ -47,7 +47,7 @@ def createBrickWallMesh( xmin=0., xmax=1., nx=15, ymin=0., ymax=1., ny=15,mesh_n print( "Spatial dimension is", mesh.getCoords().getNumberOfComponents() ) mesh.allocateCells(nx*ny) for i in range(nx*ny): - cell_connec = [4*i,4*i+1,4*i+2,4*i+3) + cell_connec = [4*i,4*i+1,4*i+2,4*i+3] mesh.insertNextCell(mc.NORM_QUAD4, cell_connec) pass @@ -88,10 +88,10 @@ def createBrickWallMesh( xmin=0., xmax=1., nx=15, ymin=0., ymax=1., ny=15,mesh_n else: raise ValueError("Pb with boundary construction : barycenter does not belong to any border group") - arr_left = mc.DataArrayIdType(ids_left) - arr_right = mc.DataArrayIdType(ids_right) - arr_bottom = mc.DataArrayIdType(ids_bottom) - arr_top = mc.DataArrayIdType(ids_top) + arr_left = mc.DataArrayInt64(ids_left) + arr_right = mc.DataArrayInt64(ids_right) + arr_bottom = mc.DataArrayInt64(ids_bottom) + arr_top = mc.DataArrayInt64(ids_top) arr_left.setName("Left") arr_right.setName("Right") -- 2.39.2