diff --git a/src/Fields/broadcast.jl b/src/Fields/broadcast.jl index 9ff2eeffb1..a5f5756373 100644 --- a/src/Fields/broadcast.jl +++ b/src/Fields/broadcast.jl @@ -419,7 +419,7 @@ function Base.Broadcast.broadcasted( fs, V, arg, - Ref(space.global_geometry), + tuple(space.global_geometry), local_geometry_field(space), ) end diff --git a/src/Operators/spectralelement.jl b/src/Operators/spectralelement.jl index aad2f26f0a..ed4cf80597 100644 --- a/src/Operators/spectralelement.jl +++ b/src/Operators/spectralelement.jl @@ -312,6 +312,14 @@ 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,