Skip to content

Commit 922f7ec

Browse files
committed
dual cache should have original A and b
1 parent 313e286 commit 922f7ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/LinearSolveForwardDiffExt.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ LinearSolve.@concrete mutable struct DualLinearCache
3737
cache
3838
prob
3939
alg
40+
A
41+
b
4042
partials_A
4143
partials_b
4244
end
@@ -175,7 +177,7 @@ function SciMLBase.init(
175177
maxiters = maxiters, verbose = verbose, Pl = Pl, Pr = Pr, assumptions = assumptions,
176178
sensealg = sensealg, kwargs...)
177179

178-
return DualLinearCache(non_partial_cache, prob, alg, ∂_A, ∂_b)
180+
return DualLinearCache(non_partial_cache, prob, alg, new_A, new_b, ∂_A, ∂_b)
179181
end
180182

181183
function SciMLBase.solve!(cache::DualLinearCache, args...; kwargs...)

0 commit comments

Comments
 (0)