modflowpy / flopy

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

bug: MF6 does not recognize the option name "BUDGETCSV" in LAK package written by FloPy (odd whitespace characters?) #2114

Closed jknightusgs closed 8 months ago

jknightusgs commented 8 months ago

When building the lak package in flopy I specify the argument budgetcsv_filerecord="blrm.lak.bud.csv" to get the lake budget csv output.

Flopy writes the model input and everything looks fine. image

I try to run the model and MF6 throws the error "UNKNOWN LAK OPTION: BUDGETCSV" image

Through random trial and error I retyped the BUDGETCSV line in the options block, same number of spaces, same letters, everything, and the model runs fine! Through further investigation I narrowed it down to the 2 spaces before BUDGETCSV and the 2 spaces between BUDGETCSV and FILEOUT. I set sublime to show whitespace characters and they look like space characters both before and after the fix. here's after retyping just the 2 sets of 2 space characters: image image

Desktop (please complete the following information):

Additional context I tried to see if the spaces being written by FloPy around the word BUDGETCSV were some sort of odd whitespace character but they just look like spaces to me in sublime text. When I replace the two sets of spaces around the word by selecting each and pressing the spacebar twice, the result looks exactly the same but MF6 doesnt throw the error anymore. Attaching copies of the input file that throws the error, and a copy that works after manually replacing the whitespace characters. blrm.lak.working.txt blrm.lak.NOTworking.txt

langevin-usgs commented 8 months ago

Any chance you can try this with the latest version of MODFLOW (v6.4.4)?

jknightusgs commented 8 months ago

That solved it, thanks Chris!

I didn't realize there was a new version of MF6 out. You all move fast. Thanks so much.

Jake Knight

Hydrologist

520 N. Park Ave. | Suite 221 | Tucson, AZ 85719

(520) 670-6671 x3336 (office)

USGS Only - Click to Chat with Jake Knight on Microsoft @.***&topicname=Chat>


From: langevin-usgs @.> Sent: Wednesday, February 21, 2024 10:12 AM To: modflowpy/flopy @.> Cc: Knight, Jacob E @.>; Author @.> Subject: [EXTERNAL] Re: [modflowpy/flopy] bug: MF6 does not recognize the option name "BUDGETCSV" in LAK package written by FloPy (odd whitespace characters?) (Issue #2114)

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

Any chance you can try this with the latest version of MODFLOW (v6.4.4)?

— Reply to this email directly, view it on GitHubhttps://github.com/modflowpy/flopy/issues/2114#issuecomment-1957348147, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGAWASHI5AGUGRPL4SKUSA3YUYTGXAVCNFSM6AAAAABDTMJ52GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJXGM2DQMJUG4. You are receiving this because you authored the thread.Message ID: @.***>

jknightusgs commented 8 months ago

FYI I ran into an unrelated problem running the model with v. 6.4.4. Although it did not throw the error for the budgetcsv option, the model ran extremely slowly compared to v. 6.3.0 (appx 10x slower). I downloaded version 6.4.0 and ran again. No error thrown and the model ran as fast as I was accustomed to with version 6.3.0 Just flagging this for you in case you are getting other reports like this. Thanks again,

Jake

Jake Knight

Hydrologist

520 N. Park Ave. | Suite 221 | Tucson, AZ 85719

(520) 670-6671 x3336 (office)

USGS Only - Click to Chat with Jake Knight on Microsoft @.***&topicname=Chat>


From: Knight, Jacob E @.> Sent: Wednesday, February 21, 2024 10:22 AM To: modflowpy/flopy @.> Subject: Re: [EXTERNAL] Re: [modflowpy/flopy] bug: MF6 does not recognize the option name "BUDGETCSV" in LAK package written by FloPy (odd whitespace characters?) (Issue #2114)

That solved it, thanks Chris!

I didn't realize there was a new version of MF6 out. You all move fast. Thanks so much.

Jake Knight

Hydrologist

520 N. Park Ave. | Suite 221 | Tucson, AZ 85719

(520) 670-6671 x3336 (office)

USGS Only - Click to Chat with Jake Knight on Microsoft @.***&topicname=Chat>


From: langevin-usgs @.> Sent: Wednesday, February 21, 2024 10:12 AM To: modflowpy/flopy @.> Cc: Knight, Jacob E @.>; Author @.> Subject: [EXTERNAL] Re: [modflowpy/flopy] bug: MF6 does not recognize the option name "BUDGETCSV" in LAK package written by FloPy (odd whitespace characters?) (Issue #2114)

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

Any chance you can try this with the latest version of MODFLOW (v6.4.4)?

— Reply to this email directly, view it on GitHubhttps://github.com/modflowpy/flopy/issues/2114#issuecomment-1957348147, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGAWASHI5AGUGRPL4SKUSA3YUYTGXAVCNFSM6AAAAABDTMJ52GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJXGM2DQMJUG4. You are receiving this because you authored the thread.Message ID: @.***>

langevin-usgs commented 8 months ago

Let's connect offline. Would be good to understand the cause of the slow down.