-
Notifications
You must be signed in to change notification settings - Fork 8
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
Change Ref -> tuple in broadcasting CartesianVector #1366
Conversation
bors r+ |
1366: Change Ref -> tuple in broadcasting CartesianVector r=charleskawczynski a=charleskawczynski This PR changes Ref -> tuple in broadcasting CartesianVector, since we were having allocation issues with `Ref`. Co-authored-by: Charles Kawczynski <[email protected]>
Build failed: |
@simonbyrne, this is basically failing because: julia> [1][]
1
julia> (1,)[]
ERROR: MethodError: no method matching getindex(::Tuple{Int64})
Closest candidates are:
getindex(::Tuple, ::Int64) at tuple.jl:29
getindex(::Tuple, ::Integer) at tuple.jl:30
getindex(::Tuple, ::Colon) at tuple.jl:33
...
Stacktrace:
[1] top-level scope
@ REPL[3]:1 We precisely fail in Base.@propagate_inbounds function get_node(space, scalar, ij, slabidx)
scalar[]
end Should we replace the |
Or define
? |
85a11eb
to
a561ac5
Compare
bors r+ |
1366: Change Ref -> tuple in broadcasting CartesianVector r=charleskawczynski a=charleskawczynski This PR changes Ref -> tuple in broadcasting CartesianVector, since we were having allocation issues with `Ref`. Co-authored-by: Charles Kawczynski <[email protected]>
Build failed: |
a561ac5
to
3edb5fd
Compare
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
This PR changes Ref -> tuple in broadcasting CartesianVector, since we were having allocation issues with
Ref
.