Skip to content

Commit 9cd4e19

Browse files
committed
reinit! not needed for now
1 parent 3547ec7 commit 9cd4e19

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

ext/LinearSolveForwardDiffExt.jl

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -193,36 +193,7 @@ function Base.getproperty(dc::DualLinearCache, sym::Symbol)
193193
end
194194
end
195195

196-
function SciMLBase.reinit!(cache::DualLinearCache;
197-
A = nothing,
198-
b = cache.b,
199-
u = cache.u,
200-
p = nothing,
201-
reuse_precs = false)
202-
(; alg, cacheval, abstol, reltol, maxiters, verbose, assumptions, sensealg) = cache
203-
204-
isfresh = !isnothing(A)
205-
precsisfresh = !reuse_precs && (isfresh || !isnothing(p))
206-
isfresh |= cache.isfresh
207-
precsisfresh |= cache.precsisfresh
208-
209-
A = isnothing(A) ? cache.A : A
210-
b = isnothing(b) ? cache.b : b
211-
u = isnothing(u) ? cache.u : u
212-
p = isnothing(p) ? cache.p : p
213-
Pl = cache.Pl
214-
Pr = cache.Pr
215-
216-
cache.A = A
217-
cache.b = b
218-
cache.u = u
219-
cache.p = p
220-
cache.Pl = Pl
221-
cache.Pr = Pr
222-
cache.isfresh = true
223-
cache.precsisfresh = precsisfresh
224-
nothing
225-
end
196+
226197

227198
# Helper functions for Dual numbers
228199
get_dual_type(x::Dual) = typeof(x)

0 commit comments

Comments
 (0)