From ace54230ed3803988842a4a04b57fb70da5a10ac Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 24 Mar 2021 17:48:02 +0100 Subject: [PATCH] Shame on me --- src/MEDCoupling_Swig/geom2medcoupling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MEDCoupling_Swig/geom2medcoupling.py b/src/MEDCoupling_Swig/geom2medcoupling.py index c92596277..374b418c1 100644 --- a/src/MEDCoupling_Swig/geom2medcoupling.py +++ b/src/MEDCoupling_Swig/geom2medcoupling.py @@ -79,7 +79,7 @@ def compute_interpolation_P0P0_matrix_with_geom(srcMesh,trgMesh): :return: a matrix with the same format than mc.MEDCouplingRemapper.getCrudeMatrix (use mc.MEDCouplingRemapper.ToCSRMatrix to convert it into scipy sparse format) """ - mat_geom = trgMesh.getNumberOfCells()*[{}] + mat_geom = [ {} for i in range(trgMesh.getNumberOfCells()) ] for j in range(trgMesh.getNumberOfCells()): for i in range(srcMesh.getNumberOfCells()): mc_src_mesh = srcMesh[i] -- 2.39.2