Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Model name in tutorial too long #2182

Closed
pya opened this issue May 6, 2024 · 2 comments
Closed

bug: Model name in tutorial too long #2182

pya opened this issue May 6, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@pya
Copy link
Contributor

pya commented May 6, 2024

Describe the bug
The model name in the first tutorial is tutorial01_mf6_data. It has a length of 19 characters. But Modflow 6 only accepts names with a maximum length of 16 characters.

To Reproduce
Steps to reproduce the behavior:

  1. Execute the code form the tutorial.
  2. Use sim.write_simulation() to write the Modflow input files.
  3. Run the model with sim.run_simulation().

This creates the following error report.

ERROR REPORT:

  1.     ERROR. INVALID MODEL NAME: TUTORIAL01_MF6_DATA
  2.     NAME LENGTH OF 19 EXCEEDS MAXIMUM LENGTH OF 16

UNIT ERROR REPORT:

  1. ERROR OCCURRED WHILE READING FILE 'mfsim.nam'

Expected behavior
The tutorial should use a valid model name. In addition, raising an exception when the model name is too long could be helpful.

Screenshots
N/A.

Desktop (please complete the following information):

  • OS: macOS 14.3
  • Browser N/A
  • Version flopy 3.6.0, Modflow 6.4.1
@spaulins-usgs
Copy link
Contributor

@pya, an updated tutorial with a shorter model name has been checked in to the FloPy develop branch.

@wpbonelli wpbonelli added this to the 3.7.0 milestone May 21, 2024
@pya
Copy link
Contributor Author

pya commented May 21, 2024

Thanks. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants