Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove piracy of fastbc #571

Merged
merged 1 commit into from
Aug 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/diffeqfastbc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ diffeqbc(x) = x
@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"))
@inline preprocess(f::typeof(diffeqbc), dest, bc::Broadcasted{Style}) where {Style} = Broadcasted{Style}(bc.f, preprocess_args(f, dest, bc.args), bc.axes)
@inline function preprocess(f::typeof(diffeqbc), dest, x)
Expand Down
2 changes: 1 addition & 1 deletion test/fastbc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ x = ones(10); y = similar(x)
du = rand(4, 2)
u1 = rand(4)
u2 = rand(1, 2)
@test_throws DimensionMismatch @.. du = u1 * u2
@test_throws DimensionMismatch @.. du = u1 * u2