-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add missing mdu keywords to FMModel class #571
Comments
I have performed a diff. The diff shows shows that there are around 200 keywords that are in the We will start by adding those keywords that are missing in HYDROLIB-core and are mentioned in the Appendix A of the manual. After that, we have to discuss with @rhutten and @veenstrajelmer what to do with those other keywords. |
The following keywords have been added:
|
@veenstrajelmer Do you maybe have a short moment to test this issue before we merge it into main? In this issue we have added the keywords listed above (the ones that are mentioned in the manual). In a separate issue we will add support for other/unknown keywords/sections. |
After an extended discussion is decided by the PO to only add keywords which are included in manual. |
I tested the issue by creating a very simply model in the latest 1D2D GUI (2024.03 release candidate) and running it. I then took the .mdu file from the .dia file and tried importing that in HYDROLIB-core. That all went fine. I checked a couple (not all) of the keywords above and they could be set and were correctly saved. I will therefore merge this issue back into main. |
Is your feature request related to a problem? Please describe.
Several mdu keywords are missing in the hydrolib core FMModel class. When reading a mdu file that is copied from the FM dia file, a lot of keywords are dropped when reading them. This should not happen. It is also not allowed to add these keywords to the FMModel, while at least part of them are documented (like
wrimap_windstress
)MWE with attached mdu file:
The
allowextra
file was obtained by overwriting thehcdfm.ini.models.INIBasedModel().Config.extra
parameter withExtra.allow
. A diff between theignoreextra
andallowextra
files show the mdu keywords missing in hydrolib-core.Describe the solution you'd like
Inclusion of these keywords.
mdu_fromdia.mdu.txt
mdu_fromdia_hcdfm_allowextra.mdu.txt
mdu_fromdia_hcdfm_ignoreextra.mdu.txt
The text was updated successfully, but these errors were encountered: