Skip to content

Commit

Permalink
Fix WOperator error when the Jacobian is lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Jul 16, 2019
1 parent 9876d03 commit 2a541fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/derivative_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ end
function LinearAlgebra.mul!(Y::AbstractVecOrMat, W::WOperator, B::AbstractVecOrMat)
if W._func_cache === nothing
# Allocate cache only if needed
W._func_cache = Vector{eltype(W)}(undef, size(Y, 1))
W._func_cache = Vector{eltype(B)}(undef, size(Y, 1))
end
if W.transform
# Compute mass_matrix * B
Expand Down

0 comments on commit 2a541fd

Please sign in to comment.