From: Anthony Geay Date: Wed, 24 Mar 2021 16:48:02 +0000 (+0100) Subject: Shame on me X-Git-Tag: V9_7_0a1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ace54230ed3803988842a4a04b57fb70da5a10ac;p=tools%2Fmedcoupling.git Shame on me --- 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]