Skip to content

Commit

Permalink
feat(mfchd.py): prevent write chk-file always (#869)
Browse files Browse the repository at this point in the history
Loading a mf-model, the CHD.chk file was always written, also wich the check-variable set to false.
For this reason the check-parameter is now added to the mfchd.load method and passed to the Package.load method.
  • Loading branch information
rabbl authored May 8, 2020
1 parent 4100de2 commit 88fbd4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flopy/modflow/mfchd.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def get_sfac_columns():
return ['shead', 'ehead']

@staticmethod
def load(f, model, nper=None, ext_unit_dict=None):
def load(f, model, nper=None, ext_unit_dict=None, check=True):
"""
Load an existing package.
Expand Down Expand Up @@ -235,7 +235,7 @@ def load(f, model, nper=None, ext_unit_dict=None):
if model.verbose:
sys.stdout.write('loading chd package file...\n')

return Package.load(f, model, ModflowChd, nper=nper,
return Package.load(f, model, ModflowChd, nper=nper, check=check,
ext_unit_dict=ext_unit_dict)

@staticmethod
Expand Down

0 comments on commit 88fbd4c

Please sign in to comment.