Skip to content

Commit afa99d6

Browse files
committed
it works
1 parent e115f0d commit afa99d6

File tree

1 file changed

+2
-2
lines changed
  • lib/OrdinaryDiffEqNonlinearSolve/src

1 file changed

+2
-2
lines changed

lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function initialize!(nlsolver::NLSolver{<:NonlinearSolveAlg, true},
5656
cache.invγdt = inv(dt * nlsolver.γ)
5757
cache.tstep = integrator.t + nlsolver.c * dt
5858

59-
@unpack ustep, tstep, k, invγdt = cache
59+
@unpack ustep, atmp, tstep, k, invγdt = cache
6060

6161
if DiffEqBase.has_stats(integrator)
6262
integrator.stats.nf += cache.cache.stats.nf
@@ -80,7 +80,7 @@ function initialize!(nlsolver::NLSolver{<:NonlinearSolveAlg, true},
8080
SciMLBase.reinit!(cache.cache, nlstep_data.nlprob.u0, p=nlstep_data.nlprob.p)
8181
else
8282
if f isa DAEFunction
83-
nlp_params = (tmp, atmp, ustep, γ, α, tstep, k, invγdt, p, dt, f)
83+
nlp_params = (tmp, ztmp, ustep, γ, α, tstep, k, invγdt, p, dt, f)
8484
else
8585
nlp_params = (tmp, ustep, γ, α, tstep, k, invγdt, method, p, dt, f)
8686
end

0 commit comments

Comments
 (0)