From 9a473cf0f3d4a1e779254d112a0e3bb46f1071eb Mon Sep 17 00:00:00 2001 From: ConstableCatnip <38230539+ConstableCatnip@users.noreply.github.com> Date: Tue, 26 Nov 2019 17:39:38 -0700 Subject: [PATCH] mnw2 missing itmp when zero Resolves issue where mnw2 itmp list didn't include zeros for when a stress period had no discharge assigned. The "continue" advanced to next iteration, missing the line where zero would be added to the list. This was causing issues when writing the mnw2 file. --- flopy/modflow/mfmnw2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flopy/modflow/mfmnw2.py b/flopy/modflow/mfmnw2.py index 3c74e52cb6..5d55a34c62 100644 --- a/flopy/modflow/mfmnw2.py +++ b/flopy/modflow/mfmnw2.py @@ -1270,7 +1270,7 @@ def load(f, model, nper=None, gwt=False, nsol=1, ext_unit_dict=None): hlim, qcut, qfrcmn, qfrcmx] + xyz) stress_period_data[per] = current_4 elif itmp_per == 0: # no active mnws this stress period - continue + pass else: # copy pumping rates from previous stress period mnw[wellid].stress_period_data[per] = \