Skip to content

Commit

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

u0 = (u0 !== nothing) ? u0 : zero.(similar(b, size(A, 2)))
u0 = if u0 !== nothing
u0
else
u0 = similar(b, size(A, 2))
fill!(u0,false)
end

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

0 comments on commit e4d13ce

Please sign in to comment.