From 95248e6d72be9f6ff506727f4a32e0fe2fdb85b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dav=C3=ADd=20Brakenhoff?= Date: Mon, 15 Apr 2024 20:31:32 +0200 Subject: [PATCH] should be ncpl not nnodes --- flopy/utils/gridintersect.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flopy/utils/gridintersect.py b/flopy/utils/gridintersect.py index 064f162aec..8bc0c7e7fb 100644 --- a/flopy/utils/gridintersect.py +++ b/flopy/utils/gridintersect.py @@ -443,14 +443,14 @@ def _vtx_grid_to_geoms_cellids(self): ) ) ) - for node in range(self.mfgrid.nnodes) + for node in range(self.mfgrid.ncpl) ] else: geoms = [ shapely.polygons(self.mfgrid.get_cell_vertices(node)) - for node in range(self.mfgrid.nnodes) + for node in range(self.mfgrid.ncpl) ] - return np.array(geoms), np.arange(self.mfgrid.nnodes) + return np.array(geoms), np.arange(self.mfgrid.ncpl) def _rect_grid_to_shape_list(self): """internal method, list of shapely polygons for structured grid cells.