Skip to content

Commit

Permalink
Error if not diagonal
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Feb 20, 2024
1 parent 7d31f3b commit dbdff10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Fields/fieldvector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,10 @@ function Base.Broadcast.instantiate(
# So, let's statically elide this when we have "diagonal"
# broadcast expressions:
if !is_diagonal_bc(bc)
Base.Broadcast.check_broadcast_axes(axes, bc.args...)
error(
"Broadcasting over different FieldVector types is unsupported.",
)
# Base.Broadcast.check_broadcast_axes(axes, bc.args...)
end
end
return Base.Broadcast.Broadcasted(bc.style, bc.f, bc.args, axes)
Expand Down

0 comments on commit dbdff10

Please sign in to comment.