Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(modflow/mfriv) unstructured mfusg RIV package load check fix #1184

Merged
merged 1 commit into from
Aug 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions autotest/t016_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def test_usg_rch_evt_models01():
m = flopy.modflow.Modflow.load(
nam, model_ws=model_ws, version="mfusg", exe_name=v
)
m.riv.check()
m.model_ws = tpth
m.write_input()
if run:
Expand Down
1 change: 1 addition & 0 deletions examples/data/mfusg_test/rch_evt_tests/usg_rch_evt.nam
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ DISU 29 usg_rch_evt.disu
OC 22 usg_rch_evt.oc
RCH 18 usg_rch_evt.rch
evt 17 usg_rch_evt.evt
riv 16 usg_rch_evt.riv
CHD 199 usg_rch_evt.chd
LPF 11 usg_rch_evt.lpf
DATA(BINARY) 50 usg_rch_evt.cbb
Expand Down
3 changes: 3 additions & 0 deletions examples/data/mfusg_test/rch_evt_tests/usg_rch_evt.riv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1
1 Stress Period 1
5 3.000000 10.0 2.500000
5 changes: 4 additions & 1 deletion flopy/modflow/mfriv.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ def check(self, f=None, verbose=True, level=1, checktype=None):

# check that river stage and bottom are above model cell
# bottoms also checks for nan values
botms = self.parent.dis.botm.array[inds]
if self.parent.structured:
botms = self.parent.dis.botm.array[inds]
else:
botms = self.parent.disu.bot.array[inds]

for elev in ["stage", "rbot"]:
txt = "{} below cell bottom".format(elev)
Expand Down