Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cache and initialization tests #304

Merged
merged 6 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/integrators/cache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ end
println("Check some other integrators")

println("Rosenbrock23")
@test_nowarn solve(prob, MethodOfSteps(Rosenbrock23(chunk_size = 1)); dt = 0.5)
@test_nowarn solve(prob, MethodOfSteps(Rosenbrock23()); dt = 0.5)

@testset "$(nameof(typeof(alg)))" for alg in CACHE_TEST_ALGS
@test_nowarn solve(prob, MethodOfSteps(alg); dt = 0.5)
end

println("Rodas4")
@test_nowarn solve(prob, MethodOfSteps(Rodas4(chunk_size = 1)); dt = 0.5)
@test_nowarn solve(prob, MethodOfSteps(Rodas4()); dt = 0.5)

println("Rodas5")
@test_nowarn solve(prob, MethodOfSteps(Rodas5(chunk_size = 1)); dt = 0.5)
@test_nowarn solve(prob, MethodOfSteps(Rodas5()); dt = 0.5)
5 changes: 2 additions & 3 deletions test/integrators/initialization.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using DelayDiffEq
using SciMLBase
using LinearAlgebra
using Test

Expand All @@ -26,13 +25,13 @@ using Test
prob_ddae = DDEProblem(
DDEFunction{true}(sir_ddae!;
mass_matrix = Diagonal([1.0, 1.0, 0.0])),
u0,
u0_good,
sir_history,
tspan,
p;
constant_lags = (p.τ,))
alg = MethodOfSteps(Rosenbrock23())
@test_nowarn init(prob_ddae, alg)
prob.u0[1] = 2.0
prob_ddae.u0[1] = 2.0
@test_throws SciMLBase.CheckInitFailureError init(prob_ddae, alg)
end
Loading