Skip to content

Commit dbdff10

Browse files
Error if not diagonal
1 parent 7d31f3b commit dbdff10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Fields/fieldvector.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ function Base.Broadcast.instantiate(
284284
# So, let's statically elide this when we have "diagonal"
285285
# broadcast expressions:
286286
if !is_diagonal_bc(bc)
287-
Base.Broadcast.check_broadcast_axes(axes, bc.args...)
287+
error(
288+
"Broadcasting over different FieldVector types is unsupported.",
289+
)
290+
# Base.Broadcast.check_broadcast_axes(axes, bc.args...)
288291
end
289292
end
290293
return Base.Broadcast.Broadcasted(bc.style, bc.f, bc.args, axes)

0 commit comments

Comments
 (0)