Skip to content

Commit

Permalink
Fix FieldVector broadcast inference failure
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Oct 9, 2023
1 parent 2706600 commit 3c8d5a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Fields/fieldvector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3c8d5a5

Please sign in to comment.