Skip to content

Commit d0f41b1

Browse files
committed
fix rosenbrock addstep
1 parent f1beeb8 commit d0f41b1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/OrdinaryDiffEqRosenbrock/src/stiff_addsteps.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function _ode_addsteps!(k, t, uprev, u, dt, f, p,
6363

6464
### Jacobian does not need to be re-evaluated after an event
6565
### Since it's unchanged
66-
jacobian2W!(W, mass_matrix, dtγ, J, true)
66+
jacobian2W!(W, mass_matrix, dtγ, J)
6767

6868
linsolve = cache.linsolve
6969

@@ -215,7 +215,7 @@ function _ode_addsteps!(
215215

216216
### Jacobian does not need to be re-evaluated after an event
217217
### Since it's unchanged
218-
jacobian2W!(W, mass_matrix, dtgamma, J, true)
218+
jacobian2W!(W, mass_matrix, dtgamma, J)
219219

220220
linsolve = cache.linsolve
221221

@@ -394,7 +394,7 @@ function _ode_addsteps!(k, t, uprev, u, dt, f, p, cache::RosenbrockCache,
394394
@.. linsolve_tmp = @muladd fsalfirst + dtgamma * dT
395395

396396
# Jacobian does not need to be re-evaluated after an event since it's unchanged
397-
jacobian2W!(W, mass_matrix, dtgamma, J, true)
397+
jacobian2W!(W, mass_matrix, dtgamma, J)
398398

399399
linsolve = cache.linsolve
400400

@@ -623,7 +623,7 @@ function _ode_addsteps!(k, t, uprev, u, dt, f, p, cache::Rosenbrock5Cache,
623623

624624
### Jacobian does not need to be re-evaluated after an event
625625
### Since it's unchanged
626-
jacobian2W!(W, mass_matrix, dtgamma, J, true)
626+
jacobian2W!(W, mass_matrix, dtgamma, J)
627627

628628
linsolve = cache.linsolve
629629

test/interface/utility_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ using OrdinaryDiffEq.OrdinaryDiffEqDifferentiation: WOperator, calc_W, calc_W!,
3939

4040
# But jacobian2W! will update the cache
4141
jacobian2W!(integrator.cache.nlsolver.cache.W._concrete_form, mm,
42-
dtgamma, integrator.cache.nlsolver.cache.W.J.A, false)
42+
dtgamma, integrator.cache.nlsolver.cache.W.J.A)
4343
@test convert(AbstractMatrix, integrator.cache.nlsolver.cache.W) == concrete_W
4444
ldiv!(tmp, lu!(integrator.cache.nlsolver.cache.W), u0)
4545
@test tmp == concrete_W \ u0

0 commit comments

Comments
 (0)