Skip to content

Commit 95248e6

Browse files
committed
should be ncpl not nnodes
1 parent 5f60c09 commit 95248e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flopy/utils/gridintersect.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -443,14 +443,14 @@ def _vtx_grid_to_geoms_cellids(self):
443443
)
444444
)
445445
)
446-
for node in range(self.mfgrid.nnodes)
446+
for node in range(self.mfgrid.ncpl)
447447
]
448448
else:
449449
geoms = [
450450
shapely.polygons(self.mfgrid.get_cell_vertices(node))
451-
for node in range(self.mfgrid.nnodes)
451+
for node in range(self.mfgrid.ncpl)
452452
]
453-
return np.array(geoms), np.arange(self.mfgrid.nnodes)
453+
return np.array(geoms), np.arange(self.mfgrid.ncpl)
454454

455455
def _rect_grid_to_shape_list(self):
456456
"""internal method, list of shapely polygons for structured grid cells.

0 commit comments

Comments
 (0)