Deltares / imod_coupler

Application for coupling hydrological kernels.
https://deltares.github.io/iMOD-Documentation/coupler
MIT License
11 stars 0 forks source link

primod: Update mapping objects to update to iMOD Python's refactoring plans #342

Closed JoerivanEngelen closed 2 weeks ago

JoerivanEngelen commented 1 month ago

I need to refactor iMOD Python's MetaSWAP objects, see https://github.com/Deltares/imod-python/issues/1255. This has the following consequences for primod:

Part 1 of this refactoring consists of changing the well argument for the coupling objects from imod.mf6.wel.WellDisStructured to imod.mf6.mf6_wel_adapter.Mf6Wel. The latter is a direct data representation of the MODFLOW 6 WEL file. More can be read here https://github.com/Deltares/imod-python/issues/728. This has the following consequences for iMOD Coupler:

Part 2 is a larger refactoring, where this Mf6Wel object will be an argument of the Sprinling.write and CouplerMapping.write methods, instead of the initialization. More can be read here https://github.com/Deltares/imod-python/issues/1255. This will require the following updates to primod:

As I need to run primod against a dev version of iMOD Python, this also means I need to temporarily modify the pixi.toml, to use a install from git with pip, instead of a install from conda-forge.