Skip to content

Commit

Permalink
fix auxvar and bound variable setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarsen-usgs committed Aug 8, 2023
1 parent 0f159da commit 8f0ec2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modflowapi/extensions/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ def _ptr_to_recarray(self):
values = np.copy(ptr)
if name in self._boundvars:
for ix, nm in enumerate(self.parent._bound_vars):
values = values[0 : self._nbound[0], ix]
recarray[nm][0 : self._nbound[0]] = values
bnd_values = values[0 : self._nbound[0], ix]
recarray[nm][0 : self._nbound[0]] = bnd_values
elif name == "auxvar":
for ix in range(self._naux[0]):
nm = self._auxnames[ix]
values = values[0 : self._nbound[0], ix]
recarray[nm][0 : self._nbound[0]] = values
aux_values = values[0 : self._nbound[0], ix]
recarray[nm][0 : self._nbound[0]] = aux_values

elif name == "auxname_cst":
pass
Expand Down

0 comments on commit 8f0ec2f

Please sign in to comment.