Skip to content

Commit

Permalink
Add to RFLU
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Apr 25, 2024
1 parent deb2f96 commit 1a40911
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/factorization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,12 @@ function SciMLBase.solve!(cache::LinearCache, alg::RFLUFactorization{P, T};
end
fact = RecursiveFactorization.lu!(A, ipiv, Val(P), Val(T), check = false)
cache.cacheval = (fact, ipiv)

if !LinearAlgebra.issuccess(fact)
return SciMLBase.build_linear_solution(
alg, cache.u, nothing, cache; retcode = ReturnCode.Failure)
end

cache.isfresh = false
end
y = ldiv!(cache.u, @get_cacheval(cache, :RFLUFactorization)[1], cache.b)
Expand Down

0 comments on commit 1a40911

Please sign in to comment.