Skip to content

Commit

Permalink
Fix calc_W for W_transform refactor
Browse files Browse the repository at this point in the history
CI didn't catch this for some reason.
  • Loading branch information
oscardssmith authored Sep 19, 2024
1 parent 870b882 commit 4c0109f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utility_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using StochasticDiffEq.SciMLOperators: MatrixOperator
jac=(u,p,t) -> A)
prob = SDEProblem(fun, u0, tspan)
integrator = init(prob, ImplicitEM(theta=1); adaptive=false, dt=dt)
W = calc_W(integrator, integrator.cache.nlsolver, dtgamma, #=repeat_step=#false, #=W_transform=#true)
W = calc_W(integrator, integrator.cache.nlsolver, dtgamma, #=repeat_step=#false)
@test convert(AbstractMatrix, W) concrete_W
@test W \ u0 concrete_W \ u0

Expand All @@ -29,7 +29,7 @@ using StochasticDiffEq.SciMLOperators: MatrixOperator
prob = SDEProblem(fun, u0, tspan)
integrator = init(prob, ImplicitEM(theta=1); adaptive=false, dt=dt)
W = integrator.cache.nlsolver.cache.W
calc_W!(W, integrator, integrator.cache.nlsolver, integrator.cache, dtgamma, #=repeat_step=#false, #=W_transform=#true)
calc_W!(W, integrator, integrator.cache.nlsolver, integrator.cache, dtgamma, #=repeat_step=#false)

# Did not update because it's an array operator
# We don't want to build Jacobians when we have operators!
Expand Down

0 comments on commit 4c0109f

Please sign in to comment.