MODFLOW-USGS / modflow6

USGS Modular Hydrologic Model
https://modflow6.readthedocs.io/
Other
254 stars 117 forks source link

Unhelpful error message generated when an input file is missing. #1018

Closed rbwinst-usgs closed 2 years ago

rbwinst-usgs commented 2 years ago

Describe the bug When an input file is missing. the error message that is generated doesn't give any actionable information such as the name of the missing file.

To Reproduce run the attached model CncObs.zip The error message is ERROR REPORT:

  1. SPECIFIED FILE STATUS: OLD
  2. SPECIFIED FILE FORMAT: FORMATTED
  3. SPECIFIED FILE ACCESS: SEQUENTIAL
  4. SPECIFIED FILE ACTION: READ
  5. IOSTAT ERROR NUMBER: 29
  6. -- STOP EXECUTION (openfile)

Expected behavior The name of the missing file should be included in the error message.

Screenshots none

Desktop (please complete the following information):

langevin-usgs commented 2 years ago

Have you tried the nightly-build version? This should have been fixed already.

rbwinst-usgs commented 2 years ago

Sorry. You're right. It was already fixed in the nightly build.

Richard B. Winston US Geological Survey Integrated Modeling and Prediction Division @.**@.> https://profile.usgs.gov/rbwinsthttp://water.usgs.gov/nrp/gwsoftware/ 703-648-5988 on Wednesdays: 301 474-2762 Fax: 703 648-5274

The following are excellent guides especially for beginning modelers. Reilly, T.E., 2001, System and boundary conceptualization in ground-water flow simulation: U.S. Geological Survey Techniques of Water-Resources Investigations, book 3, chap. B8, 30 p. https://water.usgs.gov/pubs/twri/twri-3_B8/http://water.usgs.gov/pubs/twri/twri-3_B8/

Reilly, T.E., and Harbaugh, A.W., 2004 , Guidelines for evaluating ground-water flow models: U.S. Geological Survey Scientific Investigations Report 2004-5038, 30 p. https://pubs.usgs.gov/sir/2004/5038/

Free books on Groundwater: https://gw-project.org/books/

"Codes only live if somebody loves them." Matt Tonkin, June 2, 2015, MODFLOW and More 2015 Conference Panel Discussion.

"When you started to have that problem, when you couldn't get a solution, you could get help with that. You could not get any help if you had a conceptual screw-up in your understanding of the regional hydrology. If you didn't have a rough idea of what the evapotranspiration was, of what the big streams were doing, and how the stream flow was related to groundwater, there's where you could get into trouble where nobody else could help you." Gordon Bennett in an interview, Feb. 21, 2019.


From: langevin-usgs @.> Sent: Monday, August 22, 2022 2:08 PM To: MODFLOW-USGS/modflow6 @.> Cc: Winston, Richard B @.>; Author @.> Subject: [EXTERNAL] Re: [MODFLOW-USGS/modflow6] Unhelpful error message generated when an input file is missing. (Issue #1018)

This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

Have you tried the nightly-build version? This should have been fixed already.

— Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMODFLOW-USGS%2Fmodflow6%2Fissues%2F1018%23issuecomment-1222736636&data=05%7C01%7Crbwinst%40usgs.gov%7C5aeb9625c55f44e2727108da846957c3%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C637967885226630561%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8fQ%2FHmUuq%2BeY%2Bdg9vCV%2BtvqIAfGEeoCb%2BJjGGASUKhU%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACSDIZWLOHGLU3TPWNYKBPLV2O62NANCNFSM57IRVEPQ&data=05%7C01%7Crbwinst%40usgs.gov%7C5aeb9625c55f44e2727108da846957c3%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C637967885226630561%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bEJuHFX9qTavSdC4bSpzOsA1f5ufU3BAHm1KM2Wp%2F6A%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>