Skip to content

Commit

Permalink
ensure proper type
Browse files Browse the repository at this point in the history
  • Loading branch information
Wimmerer committed Jan 29, 2022
1 parent 6c9cbc8 commit 81841c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function SciMLBase.init(prob::LinearProblem, alg::Union{SciMLLinearSolveAlgorith
)
@unpack A, b, u0, p = prob

u0 = (u0 !== nothing) ? u0 : zeros(size(A, 2))
u0 = (u0 !== nothing) ? u0 : zero.(similar(b, size(A, 2)))

cacheval = init_cacheval(alg, A, b, u0, Pl, Pr, maxiters, abstol, reltol, verbose)
isfresh = true
Expand Down

0 comments on commit 81841c8

Please sign in to comment.