diff --git a/Project.toml b/Project.toml index dd0d5da43..bd3386f87 100644 --- a/Project.toml +++ b/Project.toml @@ -19,7 +19,7 @@ TaylorSeries = "6aa5eb33-94cf-58f4-a9d0-e4b2c4fc25ea" OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" [extensions] -TaylorIntegrationDiffEq = "OrdinaryDiffEq" +TaylorIntegrationDiffEqExt = "OrdinaryDiffEq" [compat] Aqua = "0.8" diff --git a/ext/TaylorIntegrationDiffEq.jl b/ext/TaylorIntegrationDiffEqExt.jl similarity index 99% rename from ext/TaylorIntegrationDiffEq.jl rename to ext/TaylorIntegrationDiffEqExt.jl index 8e0c03eab..9de736664 100644 --- a/ext/TaylorIntegrationDiffEq.jl +++ b/ext/TaylorIntegrationDiffEqExt.jl @@ -1,6 +1,6 @@ # This file is part of the TaylorIntegration.jl package; MIT licensed -module TaylorIntegrationDiffEq +module TaylorIntegrationDiffEqExt using TaylorIntegration diff --git a/src/TaylorIntegration.jl b/src/TaylorIntegration.jl index e3fe6ec77..64c693fe0 100644 --- a/src/TaylorIntegration.jl +++ b/src/TaylorIntegration.jl @@ -27,7 +27,7 @@ function __init__() @static if !isdefined(Base, :get_extension) @require OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" begin - include("../ext/TaylorIntegrationDiffEq.jl") + include("../ext/TaylorIntegrationDiffEqExt.jl") end end end diff --git a/test/many_ode.jl b/test/many_ode.jl index b4a6da987..902d2f6d8 100644 --- a/test/many_ode.jl +++ b/test/many_ode.jl @@ -133,6 +133,7 @@ import Logging: Warn @test size(psol) == ( size(xv, 1)-1, size(xv, 2) ) @test psol[1,:] == fill(Taylor1([3.0^i for i in 1:_order+1]), 2) @test xv[end,1] == evaluate.(psol[end, 1], tv[end]-tv[end-1]) + @test xv[end,:] == sol(tv[end]) @test psol[:,1] == psol[:,2] end @@ -172,6 +173,9 @@ import Logging: Warn @test abs(sin(t0)-xb[end,2]) < 5e-14 @test solb(tmax) == [tmax, sin(tmax)] @test solb(x0[1]) == xb[end,:] + tmidT = (tmax+t0)/2 + Taylor1(order) + @test solb(tmidT)[1] == tmidT + @test norm(solb(tmidT)[2] - sin(tmidT), Inf) < 1e-13 # Tests with a range, for comparison with backward integration tmax = 15*(2pi) diff --git a/test/runtests.jl b/test/runtests.jl index 07e2ba3e7..91b30f916 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,17 +1,17 @@ # This file is part of the TaylorIntegration.jl package; MIT licensed testfiles = ( - "solution.jl", - "one_ode.jl", + # "solution.jl", + # "one_ode.jl", "many_ode.jl", - "complex.jl", - "jettransport.jl", - "lyapunov.jl", - "bigfloats.jl", - "common.jl", - "rootfinding.jl", - "taylorize.jl", - "aqua.jl", + # "complex.jl", + # "jettransport.jl", + # "lyapunov.jl", + # "bigfloats.jl", + # "common.jl", + # "rootfinding.jl", + # "taylorize.jl", + # "aqua.jl", ) for file in testfiles