Skip to content

Commit

Permalink
Change Ref->tuple in broadcasting CartesianVector
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Jul 13, 2023
1 parent 2f6acfa commit a561ac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function Base.Broadcast.broadcasted(
fs,
V,
arg,
Ref(space.global_geometry),
tuple(space.global_geometry),
local_geometry_field(space),
)
end
Expand Down
3 changes: 3 additions & 0 deletions src/Operators/spectralelement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ Base.@propagate_inbounds _get_node(space, ij, slabidx, arg, xargs...) = (
Base.@propagate_inbounds function get_node(space, scalar, ij, slabidx)
scalar[]
end
Base.@propagate_inbounds function get_node(space, scalar::Tuple{<:Any}, ij, slabidx)
scalar[1]
end
Base.@propagate_inbounds function get_node(
parent_space,
field::Fields.Field,
Expand Down

0 comments on commit a561ac5

Please sign in to comment.