Skip to content

Commit 33cb4d0

Browse files
mjrenomjreno
authored andcommitted
apply maxbound to nodelist
1 parent a9ac02d commit 33cb4d0

23 files changed

Lines changed: 369 additions & 172 deletions

autotest/test_gwf_disv_uzf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ def get_model(ws, name, array_input=False):
173173

174174
# general-head boundary
175175
if array_input:
176-
ghb = flopy.mf6.ModflowGwfghba(gwf, print_flows=True, bhead=abhead, cond=acond)
176+
ghb = flopy.mf6.ModflowGwfghba(
177+
gwf, print_flows=True, maxbound=20, bhead=abhead, cond=acond
178+
)
177179
else:
178180
ghb = flopy.mf6.ModflowGwfghb(gwf, print_flows=True, stress_period_data=ghb_spd)
179181

autotest/test_gwf_sfr_inactive02.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_model(ws, name, array_input=False):
7171
cond = np.full(nlay * nrow * ncol, DNODATA, dtype=float)
7272
bhead[0] = 1.0
7373
cond[0] = 1e6
74-
flopy.mf6.ModflowGwfghba(gwf, bhead=bhead, cond=cond)
74+
flopy.mf6.ModflowGwfghba(gwf, maxbound=1, bhead=bhead, cond=cond)
7575
else:
7676
flopy.mf6.ModflowGwfghb(gwf, stress_period_data=[((0, 0, 0), 1.0, 1e6)])
7777

autotest/test_gwf_uzf01.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def get_model(ws, name, array_input=False):
109109
gwf,
110110
print_input=True,
111111
print_flows=True,
112+
maxbound=1,
112113
bhead=bhead,
113114
cond=cond,
114115
save_flows=False,

autotest/test_gwf_vsc01.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def get_model(idx, ws, array_input=False):
145145
temp[0][0, i, ncol - 1] = initial_temperature
146146
flopy.mf6.ModflowGwfghba(
147147
gwf,
148+
maxbound=nrow,
148149
pname="GHB-1",
149150
auxiliary="temperature",
150151
bhead=bhead,

autotest/test_gwt_henry_nr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ def get_model(ws, name, array_input=False):
226226
print_input=True,
227227
print_flows=True,
228228
save_flows=False,
229+
maxbound=20,
229230
pname="GHB-1",
230231
auxiliary=["CONCENTRATION", "DENSITY"],
231232
bhead=bheadspd,

autotest/test_netcdf_gwf_disv_uzf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ def check_output(idx, test):
8888
f.write(" PRINT_INPUT\n")
8989
f.write(" PRINT_FLOWS\n")
9090
f.write("END options\n\n")
91+
f.write("BEGIN dimensions\n")
92+
f.write(" MAXBOUND 20\n")
93+
f.write("END dimensions\n\n")
9194
f.write("BEGIN period 1\n")
9295
f.write(" bhead NETCDF\n")
9396
f.write(" cond NETCDF\n")

autotest/test_netcdf_gwf_uzf01.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ def check_output(idx, test, export):
9696
f.write(" PRINT_FLOWS\n")
9797
f.write(" OBS6 FILEIN gwf_uzf01a.ghb.obs\n")
9898
f.write("END options\n\n")
99+
f.write("BEGIN dimensions\n")
100+
f.write(" MAXBOUND 1\n")
101+
f.write("END dimensions\n\n")
99102
f.write("BEGIN period 1\n")
100103
f.write(" bhead NETCDF\n")
101104
f.write(" cond NETCDF\n")

autotest/test_netcdf_gwf_vsc01.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def check_output(idx, test, export):
9494
f.write("BEGIN options\n")
9595
f.write(" auxiliary TEMPERATURE\n")
9696
f.write("END options\n\n")
97+
f.write("BEGIN dimensions\n")
98+
f.write(" MAXBOUND 10\n")
99+
f.write("END dimensions\n\n")
97100
f.write("BEGIN period 1\n")
98101
f.write(" bhead NETCDF\n")
99102
f.write(" cond NETCDF\n")

autotest/test_netcdf_gwt_henry_nr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ def check_output(idx, test, export):
101101
f.write(" PRINT_INPUT\n")
102102
f.write(" PRINT_FLOWS\n")
103103
f.write("END options\n\n")
104+
f.write("BEGIN dimensions\n")
105+
f.write(" MAXBOUND 20\n")
106+
f.write("END dimensions\n\n")
104107
for i in range(1001):
105108
f.write(f"BEGIN period {i + 1}\n")
106109
f.write(" bhead NETCDF\n")

doc/mf6io/mf6ivar/dfn/gwf-ghba.dfn

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ longname export array variables to netcdf output files.
109109
description keyword that specifies input griddata arrays should be written to the model output netcdf file.
110110
extended true
111111

112+
# --------------------- gwf ghba dimensions ---------------------
113+
114+
block dimensions
115+
name maxbound
116+
type integer
117+
reader urword
118+
optional false
119+
longname maximum number of general-head boundaries in any stress period
120+
description REPLACE maxbound {'{#1}': 'general-head boundary'}
121+
112122
# --------------------- gwf ghba period ---------------------
113123

114124
block period

0 commit comments

Comments
 (0)