Skip to content

Commit 368a24a

Browse files
Update default_linsolve_structure.jl
1 parent 2507cb4 commit 368a24a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/downstream/default_linsolve_structure.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ jp_diag = Diagonal(zeros(2))
66
fun = ODEFunction(f; jac = jac, jac_prototype = jp_diag)
77
prob = ODEProblem(fun, ones(2), (1.0, 10.0))
88
sol = solve(prob, Rosenbrock23())
9-
@test sol[end] [10.0, 10.0]
9+
@test sol.u[end] [10.0, 10.0]
1010
@test length(sol) < 60
1111

1212
sol = solve(prob, Rosenbrock23(autodiff = false))
13-
@test sol[end] [10.0, 10.0]
13+
@test sol.u[end] [10.0, 10.0]
1414
@test length(sol) < 60
1515

1616
jp = Tridiagonal(jp_diag)
1717
fun = ODEFunction(f; jac = jac, jac_prototype = jp)
1818
prob = ODEProblem(fun, ones(2), (1.0, 10.0))
1919

2020
sol = solve(prob, Rosenbrock23())
21-
@test sol[end] [10.0, 10.0]
21+
@test sol.u[end] [10.0, 10.0]
2222
@test length(sol) < 60
2323

2424
sol = solve(prob, Rosenbrock23(autodiff = false))
25-
@test sol[end] [10.0, 10.0]
25+
@test sol.u[end] [10.0, 10.0]
2626
@test length(sol) < 60
2727

2828
#=
@@ -43,7 +43,7 @@ sol = solve(prob,Rosenbrock23())
4343
fun = ODEFunction(f; jac = jac, jac_prototype = jp)
4444
prob = ODEProblem(fun, ones(2), (1.0, 10.0))
4545
sol = solve(prob, Rosenbrock23(autodiff = false))
46-
@test sol[end] [10.0, 10.0]
46+
@test sol.u[end] [10.0, 10.0]
4747
@test length(sol) < 60
4848
end
4949

@@ -52,6 +52,6 @@ end
5252
fun = ODEFunction(f; jac = jac, jac_prototype = jp)
5353
prob = ODEProblem(fun, ones(2), (1.0, 10.0))
5454
sol = solve(prob, Rosenbrock23(autodiff = false))
55-
@test sol[end] [10.0, 10.0]
55+
@test sol.u[end] [10.0, 10.0]
5656
@test length(sol) < 60
5757
end

0 commit comments

Comments
 (0)