-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issue #964 from imod5 classmethbod DIS #981
Issue #964 from imod5 classmethbod DIS #981
Conversation
… helper funtion to _is_valid
imod/mf6/dis.py
Outdated
|
||
target_grid = get_smallest_target_grid(*data.values()) | ||
|
||
regridder_settings = cls._regrid_method |
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.
make a deepcopy of cls._regrid_method
to avoid changing the defaults in this assignment. This is something that must be done at more locations. probably every implementation of "get_regrid_methods"should do this.
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.
Very good catch! Implementing this elsewhere is worthy of its own issue. Created an issue for this #1000
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.
looks good, some comments
72515e6
into
imod5_converter_feature_branch
Fixes #964
Description
Implements from_imod5 classmethod to StructuredDiscretization classmethod.
NOTE: I had to modify the default regridding method of "idomain" as the "mode" method appears to have a bug with perfectly aligned structured grids.
This bug requires further investigation. Will post an issue if found.
Checklist
Issue #nr
, e.g.Issue #737