Skip to content

Commit

Permalink
fix(check): check now works properly with confined conditions (#1880) (
Browse files Browse the repository at this point in the history
…#1882)

* fix(check): check now works properly with confined conditions (#1880)

* github workflows undo

---------

Co-authored-by: scottrp <[email protected]>
  • Loading branch information
spaulins-usgs and scottrp authored Jul 27, 2023
1 parent c261ee8 commit 8c330a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autotest/regression/test_mf6.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,9 +948,14 @@ def test_np002(function_tmpdir, example_data_path):
oc_package.printrecord.set_data([("HEAD", "ALL"), ("BUDGET", "ALL")], 1)

sto_package = ModflowGwfsto(
model, save_flows=True, iconvert=1, ss=0.000001, sy=0.15
model, save_flows=True, iconvert=0, ss=0.000001, sy=None, pname="sto_t"
)
sto_package.check()

model.remove_package("sto_t")
sto_package = ModflowGwfsto(
model, save_flows=True, iconvert=1, ss=0.000001, sy=0.15
)
hfb_package = ModflowGwfhfb(
model,
print_input=True,
Expand Down
9 changes: 9 additions & 0 deletions flopy/pakbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,15 @@ def _check_storage(self, chk, storage_coeff):
skip_sy_check = True
else:
iconvert = self.iconvert.array
inds = np.array(
[
True if l > 0 or l < 0 else False
for l in iconvert.flatten()
]
)
if not inds.any():
skip_sy_check = True

for ishape in np.ndindex(active.shape):
if active[ishape]:
active[ishape] = (
Expand Down

0 comments on commit 8c330a7

Please sign in to comment.