From 505d79d87cea2290483d082542b58af88ee1a27c Mon Sep 17 00:00:00 2001 From: askar-INTERA <96551098+askar-INTERA@users.noreply.github.com> Date: Wed, 19 Jan 2022 13:32:54 -0700 Subject: [PATCH] Update postprocessing.py The upper correction is not necessary, but with the second little correction of adding .flatten() to line 63, the function was returning an indexing error. --- flopy/mf6/utils/postprocessing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flopy/mf6/utils/postprocessing.py b/flopy/mf6/utils/postprocessing.py index bf4bee94bc..5dab92cb4b 100644 --- a/flopy/mf6/utils/postprocessing.py +++ b/flopy/mf6/utils/postprocessing.py @@ -1,5 +1,5 @@ import numpy as np -from .binarygrid_util import MfGrdFile +from flopy.mf6.utils.binarygrid_util import MfGrdFile def get_structured_faceflows( @@ -60,7 +60,7 @@ def get_structured_faceflows( shape = (grb.nlay, grb.nrow, grb.ncol) frf = np.zeros(shape, dtype=float).flatten() fff = np.zeros(shape, dtype=float).flatten() - flf = np.zeros(shape, dtype=float) + flf = np.zeros(shape, dtype=float).flatten() # fill flow terms vmult = [-1.0, -1.0, -1.0]