Skip to content

Commit 78ab37d

Browse files
authored
fix(mf6): omit removed fields from generated code (#2804)
Filter out fields marked in DFNs as removed from the generated classes in the MF6 module. Before, removed fields were included in the generated classes and would be written to input files, which would cause MF6 to raise an error. And remove usages of options recently been removed from MF6.
1 parent 9b617b2 commit 78ab37d

12 files changed

Lines changed: 31 additions & 19 deletions

.docs/Notebooks/dis_triangle_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@
204204
sim,
205205
print_option="SUMMARY",
206206
complexity="complex",
207-
outer_hclose=1.0e-8,
208-
inner_hclose=1.0e-8,
207+
outer_dvclose=1.0e-8,
208+
inner_dvclose=1.0e-8,
209209
)
210210
cell2d = tri.get_cell2d()
211211
vertices = tri.get_vertices()

.docs/Notebooks/export_vtk_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,11 @@ def run_vertex_grid_example(ws):
480480
pname="ims",
481481
print_option="SUMMARY",
482482
complexity="SIMPLE",
483-
outer_hclose=1.0e-5,
483+
outer_dvclose=1.0e-5,
484484
outer_maximum=100,
485485
under_relaxation="NONE",
486486
inner_maximum=100,
487-
inner_hclose=1.0e-6,
487+
inner_dvclose=1.0e-6,
488488
rcloserecord=0.1,
489489
linear_acceleration="BICGSTAB",
490490
scaling_method="NONE",

.docs/Notebooks/mf6_data_tutorial10.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@
6262
sim,
6363
print_option="SUMMARY",
6464
complexity="SIMPLE",
65-
outer_hclose=0.0001,
65+
outer_dvclose=0.0001,
6666
outer_maximum=500,
6767
under_relaxation="NONE",
6868
inner_maximum=100,
69-
inner_hclose=0.0001,
69+
inner_dvclose=0.0001,
7070
rcloserecord=0.001,
7171
linear_acceleration="CG",
7272
scaling_method="NONE",

.docs/Notebooks/modpath7_create_simulation_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def get_nodes(locs):
100100
sim,
101101
pname="ims",
102102
complexity="SIMPLE",
103-
outer_hclose=1e-6,
104-
inner_hclose=1e-6,
103+
outer_dvclose=1e-6,
104+
inner_dvclose=1e-6,
105105
rcloserecord=1e-6,
106106
)
107107

.docs/Notebooks/plot_cross_section_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,11 +685,11 @@ def run_vertex_grid_example(ws):
685685
pname="ims",
686686
print_option="SUMMARY",
687687
complexity="SIMPLE",
688-
outer_hclose=1.0e-5,
688+
outer_dvclose=1.0e-5,
689689
outer_maximum=100,
690690
under_relaxation="NONE",
691691
inner_maximum=100,
692-
inner_hclose=1.0e-6,
692+
inner_dvclose=1.0e-6,
693693
rcloserecord=0.1,
694694
linear_acceleration="BICGSTAB",
695695
scaling_method="NONE",

.docs/Notebooks/plot_map_view_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,11 +863,11 @@ def run_vertex_grid_example(ws):
863863
pname="ims",
864864
print_option="SUMMARY",
865865
complexity="SIMPLE",
866-
outer_hclose=1.0e-5,
866+
outer_dvclose=1.0e-5,
867867
outer_maximum=100,
868868
under_relaxation="NONE",
869869
inner_maximum=100,
870-
inner_hclose=1.0e-6,
870+
inner_dvclose=1.0e-6,
871871
rcloserecord=0.1,
872872
linear_acceleration="BICGSTAB",
873873
scaling_method="NONE",

autotest/regression/test_mf6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@ def test004_create_tests_bcfss(function_tmpdir, example_data_path):
18971897
ims_package = ModflowIms(
18981898
sim,
18991899
print_option="ALL",
1900-
csv_output_filerecord="bcf2ss.ims.csv",
1900+
csv_outer_output_filerecord="bcf2ss.ims.csv",
19011901
complexity="SIMPLE",
19021902
outer_dvclose=0.000001,
19031903
outer_maximum=500,

autotest/test_modpathfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def get_nodes(locs):
7676
sim,
7777
pname="ims",
7878
complexity="SIMPLE",
79-
outer_hclose=1e-6,
80-
inner_hclose=1e-6,
79+
outer_dvclose=1e-6,
80+
inner_dvclose=1e-6,
8181
rcloserecord=1e-6,
8282
)
8383

autotest/test_specific_discharge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,11 @@ def mf6_model(function_tmpdir):
211211
pname="ims",
212212
print_option="SUMMARY",
213213
complexity="SIMPLE",
214-
outer_hclose=1.0e-5,
214+
outer_dvclose=1.0e-5,
215215
outer_maximum=50,
216216
under_relaxation="NONE",
217217
inner_maximum=30,
218-
inner_hclose=1.0e-5,
218+
inner_dvclose=1.0e-5,
219219
rcloserecord=rcloserecord,
220220
linear_acceleration="CG",
221221
scaling_method="NONE",

flopy/mf6/mfmodel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,15 +744,15 @@ def solver_tols(self):
744744
745745
Returns
746746
-------
747-
inner_hclose, rclose : float, float
747+
inner_dvclose, rclose : float, float
748748
749749
"""
750750
ims = self.get_ims_package()
751751
if ims is not None:
752752
rclose = ims.rcloserecord.get_data()
753753
if rclose is not None:
754754
rclose = rclose[0][0]
755-
return ims.inner_hclose.get_data(), rclose
755+
return ims.inner_dvclose.get_data(), rclose
756756
return None
757757

758758
@property

0 commit comments

Comments
 (0)