Skip to content
Open
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
10 changes: 10 additions & 0 deletions autotest/test_postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,16 @@ def test_get_structured_faceflows(function_tmpdir, nlay, nrow, ncol):
assert np.any(fff) == (nrow > 1)
assert np.any(flf) == (nlay > 1)

if nlay * nrow * ncol == 3:
# The 1-D cases have unit K and cell dimensions, with all heads
# prescribed as 11, 12, 13. Darcy flow is -1 toward increasing
# column, row, or layer number; the final face has no neighbor.
expected = np.array([-1.0, -1.0, 0.0]).reshape(nlay, nrow, ncol)
for flow, size in zip((frf, fff, flf), (ncol, nrow, nlay)):
if size == 3:
np.testing.assert_allclose(flow, expected, rtol=0.0, atol=1e-8)
assert flow.flat[-1] == 0.0


@pytest.mark.mf6
@requires_exe("mf6")
Expand Down