Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Sep 6, 2024
1 parent 122343b commit 6b3e731
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ OrdinaryDiffEqQPRK = "1"
OrdinaryDiffEqRKN = "1"
OrdinaryDiffEqRosenbrock = "1"
OrdinaryDiffEqSDIRK = "1"
OrdinaryDiffEqStabilizedIRK = "1"
OrdinaryDiffEqSSPRK = "1"
OrdinaryDiffEqStabilizedIRK = "1"
OrdinaryDiffEqStabilizedRK = "1"
OrdinaryDiffEqSymplecticRK = "1"
OrdinaryDiffEqTsit5 = "1"
Expand Down
12 changes: 3 additions & 9 deletions lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,9 @@ end
reltol = eps(eltype(dz))
end

if is_always_new(nlsolver) || (iter == 1 && new_W)
linres = dolinsolve(integrator, linsolve; A = W, b = _vec(b), linu = _vec(dz),
reltol = reltol)
else
linres = dolinsolve(
integrator, linsolve; A = nothing, b = _vec(b), linu = _vec(dz),
reltol = reltol)
end

make_new_W = is_always_new(nlsolver) || (iter == 1 && new_W)
linres = dolinsolve(integrator, linsolve; A = make_new_W ? W : nothing, b = _vec(b),
reltol)
cache.linsolve = linres.cache

if DiffEqBase.has_stats(integrator)
Expand Down

0 comments on commit 6b3e731

Please sign in to comment.