Skip to content

Commit

Permalink
Merge 2f2e1cd into b893017
Browse files Browse the repository at this point in the history
  • Loading branch information
cnicol-gwlogic authored Aug 11, 2021
2 parents b893017 + 2f2e1cd commit f3bc677
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
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

0 comments on commit f3bc677

Please sign in to comment.