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

inference failure when broadcasting over multiple structs and a Field #2065

Open
juliasloan25 opened this issue Oct 31, 2024 · 0 comments · May be fixed by #2071
Open

inference failure when broadcasting over multiple structs and a Field #2065

juliasloan25 opened this issue Oct 31, 2024 · 0 comments · May be fixed by #2071
Labels
bug Something isn't working

Comments

@juliasloan25
Copy link
Member

juliasloan25 commented Oct 31, 2024

Describe the bug

Reproducer added in #2062
Initially found in CliMA/ClimaLand.jl#739

This is a type inference error that arises when a function is broadcast over one field and two structs that both have broadcastable extended using tuple. The problem is simplified in the reproducer so the structs each contain one scalar value, and the called function itself does nothing. The reproducer was tested on multiple different field types, and reproduced the bug on all of them.

@juliasloan25 juliasloan25 added the bug Something isn't working label Oct 31, 2024
@charleskawczynski charleskawczynski linked a pull request Nov 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant