Skip to content

Commit

Permalink
Thanks codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Nov 6, 2023
1 parent 651ebfd commit e4ad79d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/initialization/simpleinit.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function initial_update!(integ, cache, init::SimpleInit)
@unpack u, f, p, t = integ
@unpack x, Proj = cache
@unpack x, d, Proj = cache
du = integ.uprev

if f isa ODEFunction &&
Expand Down
13 changes: 11 additions & 2 deletions test/mass_matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,16 @@ end
f = ODEFunction(rober, mass_matrix=M)
prob = ODEProblem(f, [1.0, 0.0, 0.0], (0.0, 1e-2), (0.04, 3e7, 1e4))

ref = solve(prob, EK1(order=3))
sol = solve(prob, RadauIIA5())
ref = solve(prob, RadauIIA5())
sol = solve(prob, EK1(order=3))
@test sol[end] ref[end] rtol = 1e-8

sol = solve(prob, EK1(order=3, initialization=ForwardDiffInit(3)))
@test sol[end] ref[end] rtol = 1e-8

sol = solve(prob, EK1(order=3, initialization=ClassicSolverInit(RadauIIA5())))
@test sol[end] ref[end] rtol = 1e-8

sol = solve(prob, EK1(order=3, initialization=SimpleInit()))
@test sol[end] ref[end] rtol = 1e-8
end

0 comments on commit e4ad79d

Please sign in to comment.