-
Notifications
You must be signed in to change notification settings - Fork 0
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
Imod6 1082 modflow6 packages optional #201
Imod6 1082 modflow6 packages optional #201
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Most of the changes seem ok. The weird thing is that all functions from line 479 of dfm_metamod.py seem to be changed (at least they are red) but they are not as far as I can see. Can you changes this maybe? For now its hard for me to review that part of the changes at this point. Perhaps a rebase first?
@@ -155,7 +172,8 @@ def set_mapping(self) -> None: | |||
|
|||
def update(self) -> None: | |||
# heads from modflow to MetaSWAP | |||
self.exchange_mod2msw() | |||
if self.map_mod_msw["mod2msw_head"] is not None: | |||
self.exchange_mod2msw() |
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.
Should this be optional? This affects the core coupling between MF6 and MEtaSWAP?
"mf6_riv_active": self.mf6.get_river_drain_flux_estimate( | ||
).size | ||
try: | ||
array_dims["mf6_riv_active"] = self.mf6.get_river_drain_flux_estimate( |
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.
Is it not better to check if the specific package is defined in TOML-file? There is no need to test the function itself right? The function only doesn't work if the package names are None?
"msw-ponding2dflow2d_flux", | ||
self.dfm.get_current_time_days(), | ||
) | ||
self.matrix_product( |
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.
I guess the check is now only done in matrix_product() ?
|
||
# for calculating the realised ponding volume, the flux need to be split up in positive and negative values |
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.
what changed here? All changes below don't seem to be changes right? Just a shift down? Can you change this maybe? Its hard for me to review all changes below...
super().__init__(lib_path, lib_dependency, working_directory, timing) | ||
|
||
def get_value_ptr(self, name: str) -> NDArray: |
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.
why is this in the wrapper? This is standard xmi right?
Please review: