Skip to content

Commit

Permalink
Rename ext/TaylorIntegrationDiffEq.jl -> ext/TaylorIntegrationDiffEqE…
Browse files Browse the repository at this point in the history
…xt.jl
  • Loading branch information
PerezHz committed Aug 1, 2024
1 parent b05d0f4 commit 3019b21
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is part of the TaylorIntegration.jl package; MIT licensed

module TaylorIntegrationDiffEq
module TaylorIntegrationDiffEqExt

using TaylorIntegration

Expand Down
2 changes: 1 addition & 1 deletion src/TaylorIntegration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Check warning on line 30 in src/TaylorIntegration.jl

View check run for this annotation

Codecov / codecov/patch

src/TaylorIntegration.jl#L30

Added line #L30 was not covered by tests
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions test/many_ode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down
20 changes: 10 additions & 10 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3019b21

Please sign in to comment.