Skip to content

Commit

Permalink
mnw2 missing itmp when zero
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ConstableCatnip committed Nov 27, 2019
1 parent 935db67 commit 9a473cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flopy/modflow/mfmnw2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = \
Expand Down

0 comments on commit 9a473cf

Please sign in to comment.