-
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(check): Updated flopy's check to work with cellid -1 values #1885
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c7a9dfe
fix(check): Updated check to work with cellid -1 values
scottrp dd5b7ac
fix(test): should be a complete grid
scottrp bced4eb
fix(model grid): Always resync mf2005 grids
scottrp 80067bf
Revert "fix(model grid): Always resync mf2005 grids"
scottrp dcc62e6
fix(grid idomain): grid idomain now defaults to all 1's for MF6 only
scottrp 12cfa82
fix(notebook): notebook contained out of bounds cellid
scottrp a9abc35
fix(modelgrid): always force modelgrid to resync until an idomain arr…
scottrp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not sure I understand why there is a dependence of
idomain
onbotm
. Do we want to retainidomain=None
ifbotm
is not defined. Wouldn't it be better from themodelgrid
creation to fail if botm has not been defined when creating a discretization instance?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.
Our current approach with
modelgrid
creation is to allow for the creation of amodelgrid
without top and botm. This has always been allowed so that a user can make use of much of themodelgrid
functionality without using top and botm. Also, amodelgrid
is requested by flopy whenever grid data is loaded and the "check" option requested, including when top and botm are loaded. Failing to createmodelgrid
when botm is still in the process of loading would break our current approach. I am open to reconsidering this approach, but I thought that was beyond the scope of this PR, which is to fix a very specific problem.Regarding the dependence of initializing the default
idomain
(of all 1's) on botm, to initialize the defaultidomain
one needs to first know the shape of the model grid. Themodelgrid
class currently has only one variable, besidesidomain
, that defines the full shape of the grid,botm
. The simplest, and hopefully least prone to error, implementation was therefore to get the shape ofidomain
from thebotm
array.However, on further considering there is a potential problem with this. The model grid could get cached with the default
idomain
values when flopy loadsbotm
and then not get updated whenidomain
is finally loaded. Going to add some code to fix this potential bug.