Skip to content

Commit 11b98f2

Browse files
authored
refactor(prt): make exit_solve_tolerance optional, update release notes (#2107)
Mention the EXIT_SOLVE_TOLERANCE option now in the PRP package in the release notes, I missed this before. This was previously a required option, but need not be — set a default of 1e-5, and simplify some tests in light of this. Also draft a PRT migration guide, building on the development notes added in #2066, which could be distributed with the release. I'm not sure whether this is something to version, and if so, where it should go, but figured it can't hurt to have it.
1 parent 5a0f854 commit 11b98f2

File tree

16 files changed

+216
-164
lines changed

16 files changed

+216
-164
lines changed

autotest/test_prt_budget.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from flopy.utils.binaryfile import HeadFile
2020
from framework import TestFramework
2121
from prt_test_utils import (
22-
DEFAULT_EXIT_SOLVE_TOL,
2322
HorizontalCase,
2423
all_equal,
2524
check_budget_data,
@@ -88,7 +87,6 @@ def build_prt_sim(name, gwf_ws, prt_ws, mf6):
8887
trackcsv_filerecord=[prp_track_csv_file],
8988
stop_at_weak_sink=False,
9089
boundnames=True,
91-
exit_solve_tolerance=DEFAULT_EXIT_SOLVE_TOL,
9290
extend_tracking=True,
9391
)
9492

autotest/test_prt_drape.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from flopy.utils.binaryfile import HeadFile
2121
from framework import TestFramework
2222
from prt_test_utils import (
23-
DEFAULT_EXIT_SOLVE_TOL,
2423
all_equal,
2524
check_track_data,
2625
get_model_name,
@@ -182,7 +181,6 @@ def build_prt_sim(name, gwf_ws, prt_ws, mf6):
182181
track_filerecord=[prp_track_file],
183182
trackcsv_filerecord=[prp_track_csv_file],
184183
drape="drp" in name,
185-
exit_solve_tolerance=DEFAULT_EXIT_SOLVE_TOL,
186184
extend_tracking=True,
187185
)
188186

autotest/test_prt_dry.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ def build_prt_sim(name, gwf, prt_ws, mf6, drape=False, dry_tracking_method=False
301301
packagedata=prp_data,
302302
nreleasetimes=1,
303303
releasetimes=[(0.0,)],
304-
exit_solve_tolerance=1e-7,
305304
drape=drape,
306305
dry_tracking_method=dry_tracking_method,
307306
pname="prp",

autotest/test_prt_exg.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from flopy.utils.binaryfile import HeadFile
2525
from framework import TestFramework
2626
from prt_test_utils import (
27-
DEFAULT_EXIT_SOLVE_TOL,
2827
FlopyReadmeCase,
2928
check_budget_data,
3029
check_track_data,
@@ -73,7 +72,6 @@ def build_mf6_sim(idx, test):
7372
packagedata=rpts,
7473
perioddata={0: ["FIRST"]},
7574
boundnames="bnms" in name,
76-
exit_solve_tolerance=DEFAULT_EXIT_SOLVE_TOL,
7775
extend_tracking=True,
7876
)
7977

autotest/test_prt_fmi.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
from flopy.utils.binaryfile import HeadFile
3939
from framework import TestFramework
4040
from prt_test_utils import (
41-
DEFAULT_EXIT_SOLVE_TOL,
4241
FlopyReadmeCase,
4342
all_equal,
4443
check_budget_data,
@@ -116,7 +115,6 @@ def build_prt_sim(name, gwf_ws, prt_ws, mf6):
116115
trackcsv_filerecord=[prp_track_csv_file],
117116
stop_at_weak_sink="saws" in prt_name,
118117
boundnames=True,
119-
exit_solve_tolerance=DEFAULT_EXIT_SOLVE_TOL,
120118
extend_tracking="noext" not in prt_name,
121119
)
122120

autotest/test_prt_quad_refinement.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from flopy.utils.gridgen import Gridgen
1919
from framework import TestFramework
2020
from prt_test_utils import (
21-
DEFAULT_EXIT_SOLVE_TOL,
2221
FlopyReadmeCase,
2322
check_budget_data,
2423
check_track_data,
@@ -144,7 +143,6 @@ def build_mf6_sim(idx, test, **kwargs):
144143
nreleasepts=len(rpts),
145144
packagedata=rpts,
146145
perioddata={0: ["FIRST"]},
147-
exit_solve_tolerance=DEFAULT_EXIT_SOLVE_TOL,
148146
dev_forceternary=tracking_method == "ternary",
149147
extend_tracking=True,
150148
)

autotest/test_prt_release_timing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from framework import TestFramework
2525
from modflow_devtools.markers import requires_pkg
2626
from prt_test_utils import (
27-
DEFAULT_EXIT_SOLVE_TOL,
2827
FlopyReadmeCase,
2928
all_equal,
3029
check_budget_data,
@@ -176,7 +175,6 @@ def build_prt_sim(name, gwf_ws, prt_ws, mf6):
176175
else None,
177176
release_time_frequency=0.2 if "freq" in name else None,
178177
print_input=True,
179-
exit_solve_tolerance=DEFAULT_EXIT_SOLVE_TOL,
180178
extend_tracking=True,
181179
release_time_tolerance=0.2 if "tol" in name else None,
182180
)

autotest/test_prt_stop_zones.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
from framework import TestFramework
3636
from matplotlib.collections import LineCollection
3737
from prt_test_utils import (
38-
DEFAULT_EXIT_SOLVE_TOL,
3938
FlopyReadmeCase,
4039
check_budget_data,
4140
check_track_data,
@@ -127,7 +126,6 @@ def build_prt_sim(name, gwf_ws, prt_ws, mf6):
127126
packagedata=FlopyReadmeCase.releasepts_prt,
128127
perioddata={0: ["FIRST"]},
129128
istopzone=1,
130-
exit_solve_tolerance=DEFAULT_EXIT_SOLVE_TOL,
131129
extend_tracking=True,
132130
)
133131

autotest/test_prt_track_events.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
from flopy.utils.binaryfile import HeadFile
3535
from framework import TestFramework
3636
from prt_test_utils import (
37-
DEFAULT_EXIT_SOLVE_TOL,
3837
FlopyReadmeCase,
3938
check_budget_data,
4039
check_track_data,
@@ -140,7 +139,6 @@ def build_prt_sim(name, gwf_ws, prt_ws, mf6):
140139
nreleasepts=len(releasepts_prt[grp]),
141140
packagedata=releasepts_prt[grp],
142141
perioddata={0: ["FIRST"]},
143-
exit_solve_tolerance=DEFAULT_EXIT_SOLVE_TOL,
144142
extend_tracking=True,
145143
)
146144
for grp in ["a", "b"]

autotest/test_prt_triangle.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ def build_prt_sim(idx, name, gwf_ws, prt_ws, targets):
177177
perioddata={0: ["FIRST"]},
178178
boundnames=True,
179179
stop_at_weak_sink=True, # currently required for this problem
180-
exit_solve_tolerance=1e-5,
181180
extend_tracking=True,
182181
)
183182
prt_track_file = f"{prtname}.trk"

0 commit comments

Comments
 (0)