Skip to content

Commit

Permalink
Only manually inline broadcast until fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Apr 20, 2020
1 parent 942c08a commit a38f18c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/diffeqfastbc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ diffeqbc(x::Array) = DiffEqBC(x)
diffeqbc(x) = x

# Ensure inlining
@inline combine_axes(A, B) = broadcast_shape(broadcast_axes(A), broadcast_axes(B)) # Julia 1.0 compatible
@static if VERSION < v"1.5.0-DEV.634"
@inline combine_axes(A, B) = broadcast_shape(broadcast_axes(A), broadcast_axes(B)) # Julia 1.0 compatible
end

@inline check_broadcast_axes(shp, A::Union{Number, Array, Broadcasted}) = check_broadcast_shape(shp, axes(A))

@noinline throwfastbc(axesA, axesB) = throw(DimensionMismatch("DiffEq's fast broadcast cannot broadcast $axesA with $axesB"))
Expand Down

0 comments on commit a38f18c

Please sign in to comment.