Skip to content

Commit

Permalink
refactor(ex-prt-*): accommodate new time selection approach
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Aug 19, 2024
1 parent 7b3391e commit bbb17dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion scripts/ex-prt-mp7-p01.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ def build_models(example_name):
budget_filerecord=budget_record,
track_filerecord=track_record,
trackcsv_filerecord=trackcsv_record,
track_timesrecord=tracktimes,
ntracktimes=len(tracktimes),
tracktimes=[(t,) for t in tracktimes],
saverecord=[("BUDGET", "ALL")],
)

Expand Down
5 changes: 3 additions & 2 deletions scripts/ex-prt-mp7-p02.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,15 @@ def add_prp(part):
budget_record = [budgetfile]
track_record = [trackfile]
trackcsv_record = [trackcsvfile]
tracktimes = list(range(0, 72000, 1000))
track_times = list(range(0, 72000, 1000))
flopy.mf6.ModflowPrtoc(
prt,
pname="oc",
budget_filerecord=budget_record,
track_filerecord=track_record,
trackcsv_filerecord=trackcsv_record,
track_timesrecord=tracktimes,
ntracktimes=len(track_times),
tracktimes=[(t,) for t in track_times],
saverecord=[("BUDGET", "ALL")],
)

Expand Down
8 changes: 5 additions & 3 deletions scripts/ex-prt-mp7-p03.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ def build_prt_model():
filename="{}_1.prp".format(prt_name),
nreleasepts=len(release_points),
packagedata=release_points,
release_timesrecord=release_times,
nreleasetimes=len(release_times),
releasetimes=[(t,) for t in release_times],
# local z coordinates specified, compute global release
# coord from cell top if saturated or water table if not
local_z=True,
Expand All @@ -416,7 +417,7 @@ def build_prt_model():
)

# Instantiate the MODFLOW 6 prt output control package
tracktimes = list(range(90000, 150001, 2000))
track_times = list(range(90000, 150001, 2000))
flopy.mf6.ModflowPrtoc(
prt,
pname="oc",
Expand All @@ -425,7 +426,8 @@ def build_prt_model():
track_release=True,
track_terminate=True,
track_usertime=True,
track_timesrecord=tracktimes,
ntracktimes=len(track_times),
tracktimes=[(t,) for t in track_times],
saverecord=[("BUDGET", "ALL")],
)

Expand Down

0 comments on commit bbb17dc

Please sign in to comment.