Skip to content

Remove unnecessary read_elmer_xios_grid - #57

Merged
BenjaminRodenberg merged 7 commits into
mainfrom
remove-unnecessary-mesh-reader
Dec 16, 2025
Merged

BenjaminRodenberg merged 7 commits into
mainfrom
remove-unnecessary-mesh-reader

Conversation

@BenjaminRodenberg

Copy link
Copy Markdown
Collaborator

GridInputType.ELMER_XIOS does not allow for independent grid reading of the XIOS NetCDF. The XIOS NetCDF is always the DEM and comes with an additional Elmer grid.

This is a follow-up of #12

Author's Todos

GridInputType.ELMER_XIOS does not allow for independent grid reading
of the XIOS NetCDF. The XIOS NetCDF is always the DEM and comes with
an additional Elmer grid.
@BenjaminRodenberg BenjaminRodenberg added this to the v0.2.0 milestone Dec 12, 2025
@BenjaminRodenberg BenjaminRodenberg self-assigned this Dec 12, 2025
@BenjaminRodenberg BenjaminRodenberg added the technical debt / maintainability fixing this issue will make our lives easier in future label Dec 12, 2025
@BenjaminRodenberg BenjaminRodenberg changed the title Remove unnecessary `read_elmer_xios_grid Remove unnecessary read_elmer_xios_grid Dec 12, 2025

@ClemensSchannwell ClemensSchannwell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sure that we can delete most of the stuff, but for some of the variables I am fairly sure, we will need them a little further down the line (e.g. grid["mask"]). And tbh I don't know the model well enough to be sure that it just happily computes stuff even though grid["mask"] is not allocated...

Comment thread src/ebfm/INIT.py
Comment thread src/ebfm/INIT.py
Comment thread src/ebfm/INIT.py

@BenjaminRodenberg BenjaminRodenberg left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ClemensSchannwell Thanks for the review. This helped a lot to identify the crucial parts. I modified the code to take care of your feedback.

Comment thread src/ebfm/INIT.py Outdated
Comment thread src/ebfm/INIT.py
Comment thread src/ebfm/INIT.py Outdated
@BenjaminRodenberg
BenjaminRodenberg merged commit 4a9af9d into main Dec 16, 2025
6 checks passed
@BenjaminRodenberg
BenjaminRodenberg deleted the remove-unnecessary-mesh-reader branch December 16, 2025 07:02
BenjaminRodenberg added a commit that referenced this pull request Jan 19, 2026
* Comment out grid assignment from IN['h']
* Fix regression of main w.r.t baseline by reverting some changes from #12 and #57.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

technical debt / maintainability fixing this issue will make our lives easier in future

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants