Skip to content

Commit 8f0ec2f

Browse files
committed
fix auxvar and bound variable setting
1 parent 0f159da commit 8f0ec2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modflowapi/extensions/data.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ def _ptr_to_recarray(self):
113113
values = np.copy(ptr)
114114
if name in self._boundvars:
115115
for ix, nm in enumerate(self.parent._bound_vars):
116-
values = values[0 : self._nbound[0], ix]
117-
recarray[nm][0 : self._nbound[0]] = values
116+
bnd_values = values[0 : self._nbound[0], ix]
117+
recarray[nm][0 : self._nbound[0]] = bnd_values
118118
elif name == "auxvar":
119119
for ix in range(self._naux[0]):
120120
nm = self._auxnames[ix]
121-
values = values[0 : self._nbound[0], ix]
122-
recarray[nm][0 : self._nbound[0]] = values
121+
aux_values = values[0 : self._nbound[0], ix]
122+
recarray[nm][0 : self._nbound[0]] = aux_values
123123

124124
elif name == "auxname_cst":
125125
pass

0 commit comments

Comments
 (0)