Skip to content

Commit dc590a0

Browse files
oscardssmithChrisRackauckas
authored andcommitted
dtgamma->gamma
1 parent ac45b80 commit dc590a0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/OrdinaryDiffEqDifferentiation/src/derivative_utils.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,9 @@ function calc_W!(W, integrator, nlsolver::Union{Nothing, AbstractNLSolver}, cach
384384
if W isa WOperator
385385
if isnewton(nlsolver)
386386
# we will call `update_coefficients!` for u/p/t in NLNewton
387-
update_coefficients!(W; dtgamma)
387+
update_coefficients!(W; gamma=dtgamma)
388388
else
389-
update_coefficients!(W, uprev, p, t; dtgamma)
389+
update_coefficients!(W, uprev, p, t; gamma=dtgamma)
390390
end
391391
if W.J !== nothing && !(W.J isa AbstractSciMLOperator)
392392
islin, isode = islinearfunction(integrator)
@@ -396,7 +396,7 @@ function calc_W!(W, integrator, nlsolver::Union{Nothing, AbstractNLSolver}, cach
396396
jacobian2W!(W._concrete_form, mass_matrix, dtgamma, J)
397397
end
398398
elseif W isa AbstractSciMLOperator && !(W isa StaticWOperator)
399-
update_coefficients!(W, uprev, p, t; dtgamma)
399+
update_coefficients!(W, uprev, p, t; gamma=dtgamma)
400400
else # concrete W using jacobian from `calc_J!`
401401
islin, isode = islinearfunction(integrator)
402402
islin ? (J = isode ? f.f : f.f1.f) :
@@ -452,7 +452,7 @@ end
452452
end
453453
W = WOperator{false}(mass_matrix, dtgamma, J, uprev, cache.W.jacvec)
454454
elseif cache.W isa AbstractSciMLOperator
455-
W = update_coefficients(cache.W, uprev, p, t; dtgamma)
455+
W = update_coefficients(cache.W, uprev, p, t; gamma=dtgamma)
456456
else
457457
integrator.stats.nw += 1
458458
J = islin ? isode ? f.f : f.f1.f : calc_J(integrator, cache, next_step)

lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ end
243243
update_coefficients!(W, ustep, p, tstep)
244244
elseif W isa AbstractSciMLOperator
245245
# logic for generic AbstractSciMLOperator does not yet support partial state updates, so provide full state
246-
update_coefficients!(W, ustep, p, tstep; dtgamma = γW, transform = true)
246+
update_coefficients!(W, ustep, p, tstep; gamma = γW, transform = true)
247247
end
248248

249249
if integrator.opts.adaptive

0 commit comments

Comments
 (0)