Skip to content

Commit

Permalink
test: fix CheckInit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Nov 20, 2024
1 parent 8f9a1b2 commit 349bfcd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/interface/checkinit_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ roberf_oop = ODEFunction{false}(rober, mass_matrix = M)
prob_mm = ODEProblem(roberf, [1.0, 0.0, 0.2], (0.0, 1e5), (0.04, 3e7, 1e4))
prob_mm_oop = ODEProblem(roberf_oop, [1.0, 0.0, 0.2], (0.0, 1e5), (0.04, 3e7, 1e4))

@test_throws OrdinaryDiffEqCore.CheckInitFailureError solve(
@test_throws SciMLBase.CheckInitFailureError solve(
prob_mm, Rodas5P(), reltol = 1e-8, abstol = 1e-8, initializealg = SciMLBase.CheckInit())
@test_throws OrdinaryDiffEqCore.CheckInitFailureError solve(
@test_throws SciMLBase.CheckInitFailureError solve(
prob_mm_oop, Rodas5P(), reltol = 1e-8, abstol = 1e-8,
initializealg = SciMLBase.CheckInit())

Expand All @@ -49,7 +49,7 @@ tspan = (0.0, 100000.0)
differential_vars = [true, true, false]
prob = DAEProblem(f, du₀, u₀, tspan, differential_vars = differential_vars)
prob_oop = DAEProblem(f_oop, du₀, u₀, tspan, differential_vars = differential_vars)
@test_throws OrdinaryDiffEqCore.CheckInitFailureError solve(
@test_throws SciMLBase.CheckInitFailureError solve(
prob, DFBDF(), reltol = 1e-8, abstol = 1e-8, initializealg = SciMLBase.CheckInit())
@test_throws OrdinaryDiffEqCore.CheckInitFailureError solve(
@test_throws SciMLBase.CheckInitFailureError solve(
prob_oop, DFBDF(), reltol = 1e-8, abstol = 1e-8, initializealg = SciMLBase.CheckInit())

0 comments on commit 349bfcd

Please sign in to comment.