Skip to content

Commit

Permalink
fix(usgcln) add explicit second dimension to util2d.load calls (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnicol-gwlogic authored Feb 8, 2024
1 parent d3e8a2a commit 4ffa04e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flopy/mfusg/mfusgcln.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,13 +625,13 @@ def load(cls, f, model, pak_type="cln", ext_unit_dict=None, **kwargs):
if model.verbose:
print(" Reading ibound...")
ibound = Util2d.load(
f, model, (nclnnds,), np.int32, "ibound", ext_unit_dict
f, model, (nclnnds, 1), np.int32, "ibound", ext_unit_dict
)

if model.verbose:
print(" Reading strt...")
strt = Util2d.load(
f, model, (nclnnds,), np.float32, "strt", ext_unit_dict
f, model, (nclnnds, 1), np.float32, "strt", ext_unit_dict
)

if hasattr(f, "read"):
Expand Down Expand Up @@ -788,7 +788,7 @@ def _load_items_3to6(f_obj, model, ncln, iclnnds, ext_unit_dict):
if model.verbose:
print(" Reading nndcln...")
nndcln = Util2d.load(
f_obj, model, (ncln,), np.int32, "nndcln", ext_unit_dict
f_obj, model, (ncln, 1), np.int32, "nndcln", ext_unit_dict
)
nclnnds = nndcln.array.sum()
if iclnnds > 0:
Expand All @@ -814,13 +814,13 @@ def _load_items_3to6(f_obj, model, ncln, iclnnds, ext_unit_dict):
print(" Reading iac_cln...")
nclnnds = abs(iclnnds)
iac_cln = Util2d.load(
f_obj, model, (nclnnds,), np.int32, "iac_cln", ext_unit_dict
f_obj, model, (nclnnds, 1), np.int32, "iac_cln", ext_unit_dict
)

if model.verbose:
print(" Reading ja_cln...")
ja_cln = Util2d.load(
f_obj, model, (nja_cln,), np.int32, "ja_cln", ext_unit_dict
f_obj, model, (nja_cln, 1), np.int32, "ja_cln", ext_unit_dict
)
else:
raise Exception("mfcln: negative number of CLN segments")
Expand Down

0 comments on commit 4ffa04e

Please sign in to comment.