Skip to content

Commit 6b3e731

Browse files
committed
fixes
1 parent 122343b commit 6b3e731

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ OrdinaryDiffEqQPRK = "1"
121121
OrdinaryDiffEqRKN = "1"
122122
OrdinaryDiffEqRosenbrock = "1"
123123
OrdinaryDiffEqSDIRK = "1"
124-
OrdinaryDiffEqStabilizedIRK = "1"
125124
OrdinaryDiffEqSSPRK = "1"
125+
OrdinaryDiffEqStabilizedIRK = "1"
126126
OrdinaryDiffEqStabilizedRK = "1"
127127
OrdinaryDiffEqSymplecticRK = "1"
128128
OrdinaryDiffEqTsit5 = "1"

lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,9 @@ end
220220
reltol = eps(eltype(dz))
221221
end
222222

223-
if is_always_new(nlsolver) || (iter == 1 && new_W)
224-
linres = dolinsolve(integrator, linsolve; A = W, b = _vec(b), linu = _vec(dz),
225-
reltol = reltol)
226-
else
227-
linres = dolinsolve(
228-
integrator, linsolve; A = nothing, b = _vec(b), linu = _vec(dz),
229-
reltol = reltol)
230-
end
231-
223+
make_new_W = is_always_new(nlsolver) || (iter == 1 && new_W)
224+
linres = dolinsolve(integrator, linsolve; A = make_new_W ? W : nothing, b = _vec(b),
225+
reltol)
232226
cache.linsolve = linres.cache
233227

234228
if DiffEqBase.has_stats(integrator)

0 commit comments

Comments
 (0)