modflowpy / flopy

A Python package to create, run, and post-process MODFLOW-based models.
https://flopy.readthedocs.io
Other
507 stars 307 forks source link

bug: load_only missing from Mt3dms load function for Seawat models #2198

Closed phaehnel closed 3 months ago

phaehnel commented 3 months ago

Describe the bug The function Mt3dms.load() in Lines 493 to 501 in the file flopy/seawat/swt.py seems to be missing the load_only argument. Currently, loading a Seawat model results in all Mt3dms packages trying to be loaded even if only a subset is specified via load_only.

To Reproduce Steps to reproduce the behavior:

  1. Create any Seawat model
  2. Delete some Mt3dms input files
  3. Load only defined input files of the model swt = flopy.seawat.Seawat.load('model.nam', load_only = ['dis', 'bas6', 'oc', 'btn'], verbose = True)
  4. Verbose output will show that advection package is trying to be loaded, even though not specified

Expected behavior Only Mt3dms packages defined in load_only will be tried to load.

Desktop (please complete the following information):