From 9e49241eab2ce9930e5660cb6392aae134ef3aae Mon Sep 17 00:00:00 2001 From: Charles Kawczynski Date: Sat, 2 Nov 2024 15:17:17 -0400 Subject: [PATCH] Remove unnecessary broadcasted functions --- src/Fields/fieldvector.jl | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/Fields/fieldvector.jl b/src/Fields/fieldvector.jl index a2c4be5812..4cd9843151 100644 --- a/src/Fields/fieldvector.jl +++ b/src/Fields/fieldvector.jl @@ -209,21 +209,6 @@ function Spaces.weighted_dss!( Spaces.weighted_dss!(pairs...) end -Base.Broadcast.broadcasted(fs::FieldVectorStyle, ::typeof(+), args...) = - Base.Broadcast.broadcasted(fs, RecursiveApply.:⊞, args...) - -Base.Broadcast.broadcasted(fs::FieldVectorStyle, ::typeof(-), args...) = - Base.Broadcast.broadcasted(fs, RecursiveApply.:⊟, args...) - -Base.Broadcast.broadcasted(fs::FieldVectorStyle, ::typeof(*), args...) = - Base.Broadcast.broadcasted(fs, RecursiveApply.:⊠, args...) - -Base.Broadcast.broadcasted(fs::FieldVectorStyle, ::typeof(/), args...) = - Base.Broadcast.broadcasted(fs, RecursiveApply.rdiv, args...) - -Base.Broadcast.broadcasted(fs::FieldVectorStyle, ::typeof(muladd), args...) = - Base.Broadcast.broadcasted(fs, RecursiveApply.rmuladd, args...) - # Recursively call transform_bc_args() on broadcast arguments in a way that is statically reducible by the optimizer # see Base.Broadcast.preprocess_args @inline transform_bc_args(args::Tuple, inds...) = ( @@ -246,7 +231,7 @@ Base.Broadcast.broadcasted(fs::FieldVectorStyle, ::typeof(muladd), args...) = ) end @inline transform_broadcasted(fv::FieldVector, symb, axes) = - parent(field_values(getfield(_values(fv), symb))) + parent(todata(getfield(_values(fv), symb))) @inline transform_broadcasted(x, symb, axes) = x @inline function first_fieldvector_in_bc(args::Tuple, rargs...)