From 3c8d5a5b4ae67e5073cb9afc7c02d6d9b8adcdf5 Mon Sep 17 00:00:00 2001 From: Charles Kawczynski Date: Fri, 22 Sep 2023 11:27:27 -0700 Subject: [PATCH] Fix FieldVector broadcast inference failure --- src/Fields/fieldvector.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Fields/fieldvector.jl b/src/Fields/fieldvector.jl index 7e83ecd940..27107fdf0d 100644 --- a/src/Fields/fieldvector.jl +++ b/src/Fields/fieldvector.jl @@ -92,8 +92,10 @@ end BlockArrays.blockaxes(fv::FieldVector) = (BlockArrays.BlockRange(1:length(_values(fv))),) -Base.axes(fv::FieldVector) = - (BlockArrays.blockedrange(map(length ∘ backing_array, Tuple(_values(fv)))),) +Base.axes(fv::FieldVector) = map( + BlockArrays.blockedrange ∘ Base.OneTo ∘ length ∘ backing_array, + Tuple(_values(fv)), +) Base.@propagate_inbounds Base.getindex( fv::FieldVector,