Skip to content

Commit

Permalink
Added Dispatch for TaylorIntegrationDiffEqExt.TaylorMethodCache (#202)…
Browse files Browse the repository at this point in the history
… [skip ci]

* Added Dispatch

* Updates

* Update ext/TaylorIntegrationDiffEqExt.jl

Co-authored-by: Jorge Pérez <[email protected]>

* Updates

---------

Co-authored-by: Jorge Pérez <[email protected]>
  • Loading branch information
ParamThakkar123 and PerezHz authored Dec 9, 2024
1 parent 037e91f commit 61f6f9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ['1.6', '1', 'nightly']
version: ['1.10', '1', 'nightly']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
arch:
- x64
Expand Down
7 changes: 3 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.16.1"

[deps]
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
Elliptic = "b305315f-e792-5b7a-8f41-49f472929428"
Espresso = "6912e4f1-e036-58b0-9138-08d1e6358ea9"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down Expand Up @@ -40,7 +41,7 @@ Requires = "1"
StaticArrays = "0.12.5, 1"
TaylorSeries = "0.18"
Test = "<0.0.1, 1"
julia = "1.6"
julia = "1.10"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand All @@ -59,6 +60,4 @@ TaylorSeries = "6aa5eb33-94cf-58f4-a9d0-e4b2c4fc25ea"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "DiffEqBase", "Elliptic", "InteractiveUtils",
"LinearAlgebra", "Logging", "OrdinaryDiffEq", "Pkg",
"RecursiveArrayTools", "StaticArrays", "TaylorSeries", "Test"]
test = ["Aqua", "DiffEqBase", "Elliptic", "InteractiveUtils", "LinearAlgebra", "Logging", "OrdinaryDiffEq", "Pkg", "RecursiveArrayTools", "StaticArrays", "TaylorSeries", "Test"]
2 changes: 2 additions & 0 deletions ext/TaylorIntegrationDiffEqExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ function OrdinaryDiffEq.perform_step!(integrator, cache::TaylorMethodCache)
integrator.stats.nf += 1
end

OrdinaryDiffEq.get_fsalfirstlast(cache::TaylorMethodCache, u) = (cache.fsalfirst, cache.k)

OrdinaryDiffEq.stepsize_controller!(integrator,alg::TaylorMethodParams) =
TaylorIntegration.stepsize(integrator.cache.uT, integrator.opts.abstol)
OrdinaryDiffEq.step_accept_controller!(integrator, alg::TaylorMethodParams, q) = q
Expand Down

0 comments on commit 61f6f9c

Please sign in to comment.