-
Notifications
You must be signed in to change notification settings - Fork 322
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
fix(CellBudgetFile): detect compact fmt by negative nlay #1966
Conversation
wpbonelli
commented
Sep 26, 2023
•
edited
Loading
edited
- close bug: Reading flows from binary budget file for steady stress period of zero length #1939
- previously, omitted totim=0 if compact
- detect compact format by negative nlay
- add mf6 test case courtesy of @mbakker7
- test mf2005 with compact/non-compact
Codecov Report
@@ Coverage Diff @@
## develop #1966 +/- ##
=======================================
Coverage 72.7% 72.7%
=======================================
Files 257 257
Lines 57800 57802 +2
=======================================
+ Hits 42023 42044 +21
+ Misses 15777 15758 -19
|
Updated My understanding is that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @wpbonelli, the negative nlay check looks to be more definitive (though I did not verify in the mf2005 source code itself). The one thing that still bugs me in all this is that _totim_from_kstpkper
should give a correct totim, even for this particular case where the first stress period has perlen set to zero -- at least that is what it appears based a quick look at that routine.
@langevin-usgs I can come back and add some tests for |
* previously omitted totim=0 if compact * add mf6 test case courtesy of mbakker * test mf2005 with compact/non-compact
For what it is worth, the current PR doesn't fix the problem yet of t=0 not being read from the budgetfile in MF6. Was it supposed to be? |
@mbakker7 maybe I am missing something, I thought it does fix the t=0 issue. With the provided test model,
|
I don't quite understand how the test is passing on your machine. It doesn't really on my machine. Are you sure it is passing? Or did you also change something in MODFLOW6 and I should get a new version of MODFLOW6?
|
Just checked with mf6.4.1, 6.4.2 and latest nightly build, and all pass.. Could be a python package version issue, would you mind running |
You really think it could be a python package version issue? That would be surpising. You really want |
I imagine numpy is the only plausible candidate, maybe just numpy version? |
* previously omitted totim=0 if compact * add mf6 test case courtesy of mbakker * test mf2005 with compact/non-compact