@@ -10,48 +10,48 @@ function f(du, u, p, t)
1010 du .= 2.0 * u
1111end
1212prob = ODEProblem (f, u0, tspan)
13- @test_throws DiffEqBase . IncompatibleInitialConditionError sol= solve (prob, Tsit5 ())
13+ @test_throws SciMLBase . IncompatibleInitialConditionError sol= solve (prob, Tsit5 ())
1414
1515prob = ODEProblem {false} (f, u0, tspan)
1616sol = solve (prob, Tsit5 ())
1717sol = solve (prob, nothing , alg = Tsit5 ())
1818sol = init (prob, nothing , alg = Tsit5 ())
1919
2020prob = ODEProblem {false} (f, 1.0 + im, tspan)
21- @test_throws DiffEqBase . ComplexSupportError solve (prob, CVODE_Adams ())
21+ @test_throws SciMLBase . ComplexSupportError solve (prob, CVODE_Adams ())
2222
23- @test_throws DiffEqBase . ProblemSolverPairingError solve (prob, DFBDF ())
24- @test_throws DiffEqBase . NonSolverError solve (prob, 5.0 )
23+ @test_throws SciMLBase . ProblemSolverPairingError solve (prob, DFBDF ())
24+ @test_throws SciMLBase . NonSolverError solve (prob, 5.0 )
2525
2626prob = ODEProblem {false} (f, u0, (nothing , nothing ))
27- @test_throws DiffEqBase . NoTspanError solve (prob, Tsit5 ())
27+ @test_throws SciMLBase . NoTspanError solve (prob, Tsit5 ())
2828
2929prob = ODEProblem {false} (f, u0, (NaN , 1.0 ))
30- @test_throws DiffEqBase . NaNTspanError solve (prob, Tsit5 ())
30+ @test_throws SciMLBase . NaNTspanError solve (prob, Tsit5 ())
3131
3232prob = ODEProblem {false} (f, u0, (1.0 , NaN ))
33- @test_throws DiffEqBase . NaNTspanError solve (prob, Tsit5 ())
33+ @test_throws SciMLBase . NaNTspanError solve (prob, Tsit5 ())
3434
3535prob = ODEProblem {false} (f, Any[1.0 , 1.0f0 ], tspan)
36- @test_throws DiffEqBase . NonConcreteEltypeError solve (prob, Tsit5 ())
36+ @test_throws SciMLBase . NonConcreteEltypeError solve (prob, Tsit5 ())
3737
3838prob = ODEProblem {false} (f, (1.0 , 1.0f0 ), tspan)
39- @test_throws DiffEqBase . TupleStateError solve (prob, Tsit5 ())
39+ @test_throws SciMLBase . TupleStateError solve (prob, Tsit5 ())
4040
4141prob = ODEProblem {false} (f, u0, (0.0 + im, 1.0 ))
42- @test_throws DiffEqBase . ComplexTspanError solve (prob, Tsit5 ())
42+ @test_throws SciMLBase . ComplexTspanError solve (prob, Tsit5 ())
4343
4444for u0 in ([0.0 , 0.0 ], nothing )
4545 fmm = ODEFunction (f, mass_matrix = zeros (3 , 3 ))
4646 prob = ODEProblem (fmm, u0, (0.0 , 1.0 ))
47- @test_throws DiffEqBase . IncompatibleMassMatrixError solve (prob, Tsit5 ())
47+ @test_throws SciMLBase . IncompatibleMassMatrixError solve (prob, Tsit5 ())
4848end
4949
5050# Allow empty mass matrix for empty u0
5151fmm = ODEFunction ((du, u, t) -> nothing , mass_matrix = zeros (0 , 0 ))
5252prob = ODEProblem (fmm, nothing , (0.0 , 1.0 ))
5353sol = solve (prob, Tsit5 ())
54- @test isa (sol, DiffEqBase . ODESolution)
54+ @test isa (sol, SciMLBase . ODESolution)
5555
5656f (du, u, p, t) = du .= 1.01 u
5757function g (du, u, p, t)
@@ -71,12 +71,12 @@ prob = SDEProblem(f,
7171 (0.0 , 1.0 ),
7272 noise_rate_prototype = complex (zeros (2 , 4 )),
7373 noise = StochasticDiffEq. RealWienerProcess (0.0 , zeros (3 )))
74- @test_throws DiffEqBase . NoiseSizeIncompatabilityError solve (prob, LambaEM ())
74+ @test_throws SciMLBase . NoiseSizeIncompatabilityError solve (prob, LambaEM ())
7575
7676function g! (du, u, p, t)
7777 du[1 ] .= u[1 ] + ones (3 , 3 )
7878 du[2 ] .= ones (3 , 3 )
7979end
8080u0 = [zeros (3 , 3 ), zeros (3 , 3 )]
8181prob = ODEProblem (g!, u0, (0 , 1.0 ))
82- @test_throws DiffEqBase . NonNumberEltypeError solve (prob, Tsit5 ())
82+ @test_throws SciMLBase . NonNumberEltypeError solve (prob, Tsit5 ())
0 commit comments