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

refactor(ex-prt-*): accommodate new time selection approach #225

Merged
merged 1 commit into from
Aug 19, 2024
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
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
Loading