Skip to content

Commit

Permalink
fix(array3d_export): loop over array shape to fix case for disu grid
Browse files Browse the repository at this point in the history
  • Loading branch information
martclanor committed Sep 14, 2024
1 parent 0d96579 commit 36a72ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flopy/export/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ def array3d_export(f: Union[str, os.PathLike], u3d, fmt=None, **kwargs):
f
).suffix.lower() == ".shp":
array_dict = {}
for ilay in range(modelgrid.nlay):
for ilay in range(u3d.array.shape[0]):
u2d = u3d[ilay]
if isinstance(u2d, np.ndarray):
dname = u3d.name
Expand Down

0 comments on commit 36a72ad

Please sign in to comment.