|
1 | 1 | """
|
2 | 2 | NetCDF test version of test_gwt_henry_nr. The primary aim is to test
|
3 |
| -that GHBA package NetCDF array input (bhead, cond, concentration and |
| 3 | +that GHBG package NetCDF array input (bhead, cond, concentration and |
4 | 4 | density auxiliary arrays) gives the same results as test_gwt_henry_nr
|
5 |
| -list based (GHB) and array based (GHBA) ascii input runs. This test |
| 5 | +list based (GHB) and array based (GHBG) ascii input runs. This test |
6 | 6 | compares heads in the the NetCDF file to those in the FloPy binary
|
7 | 7 | output head file.
|
8 | 8 | """
|
@@ -54,14 +54,14 @@ def check_output(idx, test, export):
|
54 | 54 | from test_gwt_henry_nr import check_output as check
|
55 | 55 |
|
56 | 56 | name = "gwf_" + test.name
|
57 |
| - ghba_ws = Path(test.workspace / "mf6") |
| 57 | + ghbg_ws = Path(test.workspace / "mf6") |
58 | 58 | ws = Path(test.workspace / "mf6" / "netcdf")
|
59 |
| - shutil.copytree(ghba_ws, ws) |
| 59 | + shutil.copytree(ghbg_ws, ws) |
60 | 60 |
|
61 |
| - # check outputs of GHB / GHBA ascii input runs |
| 61 | + # check outputs of GHB / GHBG ascii input runs |
62 | 62 | check(test.workspace, test.name, test.sims[0])
|
63 | 63 | # check(ws, test.name, test.sims[0])
|
64 |
| - check(ghba_ws, test.name, test.sims[0]) |
| 64 | + check(ghbg_ws, test.name, test.sims[0]) |
65 | 65 |
|
66 | 66 | # verify format of generated netcdf file
|
67 | 67 | with nc.Dataset(ws / f"{name}.nc") as ds:
|
@@ -90,13 +90,14 @@ def check_output(idx, test, export):
|
90 | 90 | f.write(f" STO6 {name}.sto sto\n")
|
91 | 91 | f.write(f" BUY6 {name}.buy buy\n")
|
92 | 92 | f.write(f" DRN6 {name}.drn drn-1\n")
|
93 |
| - f.write(f" GHBA6 {name}.ghba ghb-1\n") |
| 93 | + f.write(f" GHB6 {name}.ghbg ghb-1\n") |
94 | 94 | f.write(f" WEL6 {name}.wel wel-1\n")
|
95 | 95 | f.write(f" OC6 {name}.oc oc\n")
|
96 | 96 | f.write("END packages\n")
|
97 | 97 |
|
98 |
| - with open(ws / f"{name}.ghba", "w") as f: |
| 98 | + with open(ws / f"{name}.ghbg", "w") as f: |
99 | 99 | f.write("BEGIN options\n")
|
| 100 | + f.write(" READARRAYGRID\n") |
100 | 101 | f.write(" auxiliary CONCENTRATION DENSITY\n")
|
101 | 102 | f.write(" PRINT_INPUT\n")
|
102 | 103 | f.write(" PRINT_FLOWS\n")
|
@@ -132,7 +133,7 @@ def check_output(idx, test, export):
|
132 | 133 | names = [name, "gwt_" + test.name]
|
133 | 134 | for i, e in enumerate(ext):
|
134 | 135 | fpth1 = os.path.join(
|
135 |
| - ghba_ws, |
| 136 | + ghbg_ws, |
136 | 137 | f"{names[i]}.{e}",
|
137 | 138 | )
|
138 | 139 | fpth2 = os.path.join(ws, f"{names[i]}.{e}")
|
|
0 commit comments