From a902bb78a4fadab0ad886faa162bb5b2bcf69a87 Mon Sep 17 00:00:00 2001 From: Joshua Larsen Date: Wed, 2 Oct 2019 16:06:11 -0700 Subject: [PATCH] Fix(mfuzf1): fix read and write dataset 4b when specifysurfk option is present --- flopy/modflow/mfuzf1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flopy/modflow/mfuzf1.py b/flopy/modflow/mfuzf1.py index 91d4bec85e..abefc5547e 100644 --- a/flopy/modflow/mfuzf1.py +++ b/flopy/modflow/mfuzf1.py @@ -514,7 +514,7 @@ def __init__(self, model, if abs(iuzfopt) in [0, 1]: self.vks = Util2d(model, (nrow, ncol), np.float32, vks, name='vks') - if seepsurfk: + if seepsurfk or specifysurfk: self.surfk = Util2d(model, (nrow, ncol), np.float32, surfk, name='surfk') @@ -680,7 +680,7 @@ def write_file(self, f=None): f_uzf.write(self.vks.get_file_entry()) # Dataset 4b modflow 2005 v. 1.12 and modflow-nwt v. 1.1 - if self.seepsurfk: + if self.seepsurfk or self.specifysurfk: f_uzf.write(self.surfk.get_file_entry()) if self.iuzfopt > 0: @@ -852,7 +852,7 @@ def load_util2d(name, dtype, per=None): load_util2d('vks', np.float32) # dataset 4b - if seepsurfk: + if seepsurfk or specifysurfk: load_util2d('surfk', np.float32) if iuzfopt > 0: