Skip to content
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

Fix RingGrid broadcast issue with mismatching dimensions #568

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

maximilian-gelbrecht
Copy link
Member

@maximilian-gelbrecht maximilian-gelbrecht commented Aug 1, 2024

Fixes #565

Just needed a look into the Julia docs to figure it out.

Unfortunately the solution is a bit "ugly" and not completely general as Julia doesn't allow any arithmetics with type parameters (e.g. Grid{N+1}) doesn't work

@maximilian-gelbrecht maximilian-gelbrecht added bug 🐞 Something isn't working array types 🔢 LowerTriangularMatrices and RingGrids labels Aug 1, 2024
@milankl
Copy link
Member

milankl commented Aug 1, 2024

Very happy with that, not that we'd really need 5D+ variables, and if that's the case one can either be explicit with the broadcasting or we can then still address this issue...

@maximilian-gelbrecht maximilian-gelbrecht merged commit b5e8eb2 into main Aug 1, 2024
5 checks passed
@maximilian-gelbrecht maximilian-gelbrecht deleted the mg/ringgrids-broadcastfix branch August 1, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
array types 🔢 LowerTriangularMatrices and RingGrids bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RingGrids: Conflicting Broadcast Rules
2 participants