Skip to content

Commit

Permalink
refactor(binarygrid_util): refactor get_iverts to be general and not …
Browse files Browse the repository at this point in the history
…dependent on grid type (#2230)
  • Loading branch information
langevin-usgs authored Jun 14, 2024
1 parent e2a85a3 commit ae388ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions flopy/mf6/utils/binarygrid_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,10 @@ def __get_iverts(self):
"""
iverts = None
if "IAVERT" in self._datadict:
if self._grid_type == "DISV":
nsize = self.ncpl
elif self._grid_type == "DISU":
nsize = self.nodes
iverts = []
iavert = self.iavert
javert = self.javert
nsize = iavert.shape[0] - 1
for ivert in range(nsize):
i0 = iavert[ivert]
i1 = iavert[ivert + 1]
Expand Down

0 comments on commit ae388ef

Please sign in to comment.