Skip to content

Commit

Permalink
fix utility tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kanav99 committed Jul 15, 2019
1 parent bbcdf53 commit b171a9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/interface/utility_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ end
mass_matrix=mm,
jac=(u,p,t) -> A)
integrator = init(ODEProblem(fun,u0,tspan), ImplicitEuler(); adaptive=false, dt=dt)
W = calc_W!(integrator, integrator.cache, dtgamma, false)
W = calc_W!(integrator.cache.nlsolver, integrator, integrator.cache, dtgamma, false)
@test convert(AbstractMatrix, W) == concrete_W
@test W \ u0 concrete_W \ u0

Expand All @@ -37,9 +37,9 @@ end
mass_matrix=mm,
jac_prototype=DiffEqArrayOperator(A))
integrator = init(ODEProblem(fun,u0,tspan), ImplicitEuler(); adaptive=false, dt=dt)
calc_W!(integrator, integrator.cache, dtgamma, false)
@test convert(AbstractMatrix, integrator.cache.W) == concrete_W
ldiv!(tmp, lu!(integrator.cache.W), u0); @test tmp == concrete_W \ u0
calc_W!(integrator.cache.nlsolver, integrator, integrator.cache, dtgamma, false)
@test convert(AbstractMatrix, integrator.cache.nlsolver.cache.W) == concrete_W
ldiv!(tmp, lu!(integrator.cache.nlsolver.cache.W), u0); @test tmp == concrete_W \ u0
end

@testset "Implicit solver with lazy W" begin
Expand Down

0 comments on commit b171a9b

Please sign in to comment.