Skip to content

Commit bf3f06d

Browse files
committed
remove primal_sol assignment
1 parent 5eb0356 commit bf3f06d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/LinearSolveForwardDiffExt.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ function linearsolve_forwarddiff_solve!(cache::DualLinearCache, alg, args...; kw
6565
cache.primal_b_cache .= cache.linear_cache.b
6666
uu = sol.u
6767

68-
# Store solution metadata without copying - we'll return this
69-
primal_sol = sol
70-
7168
# Solves Dual partials separately
7269
∂_A = cache.partials_A
7370
∂_b = cache.partials_b
@@ -93,7 +90,7 @@ function linearsolve_forwarddiff_solve!(cache::DualLinearCache, alg, args...; kw
9390
cache.linear_cache.b .= cache.primal_b_cache
9491
cache.linear_cache.u .= cache.primal_u_cache
9592

96-
return primal_sol
93+
return sol
9794
end
9895

9996
function xp_linsolve_rhs!(uu, ∂_A::Union{<:Partials, <:AbstractArray{<:Partials}},

0 commit comments

Comments
 (0)