Skip to content

Commit 40e27de

Browse files
jlchanranocha
andauthored
Apply suggestions from code review
Co-authored-by: Hendrik Ranocha <[email protected]>
1 parent f7442cd commit 40e27de

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

lib/OrdinaryDiffEqLowStorageRK/test/ode_low_storage_rk_tests.jl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,16 @@ end
16251625
ode = ODEProblem(rhs!, VectorOfArray(u), (0, 0.7))
16261626
sol_SV = solve(ode, RDPK3SpFSAL35())
16271627

1628-
@test sol.SA sol_SV
1628+
@test sol_SA sol_SV
16291629
@test sol_SV.stats.naccept == sol_SA.stats.naccept
1630+
1631+
# Plain vector
1632+
u = [1.0, 2.0]
1633+
ode = ODEProblem(rhs!, u, (0, 0.7))
1634+
sol = solve(ode, RDPK3SpFSAL35())
1635+
@test sol.stats.naccept == sol_SA.stats.naccept
1636+
@test sol.t sol_SA.t
1637+
for i in eachindex(sol_SA.u), j in eachindex(u)
1638+
@test sol.u[i][j] sol_SA.u[i][j][1]
1639+
end
16301640
end

lib/OrdinaryDiffEqSSPRK/test/ode_ssprk_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,6 @@ sol = solve(test_problem_ssp_long, alg, dt = OrdinaryDiffEqSSPRK.ssp_coefficient
511511
ode = ODEProblem(rhs!, VectorOfArray(u), (0, 0.7))
512512
sol_SV = solve(ode, SSPRK43())
513513

514-
@test sol.SA sol_SV
514+
@test sol_SA sol_SV
515515
@test sol_SV.stats.naccept == sol_SA.stats.naccept
516516
end

0 commit comments

Comments
 (0)