Skip to content

Commit

Permalink
Update TaylorSeries and fix errors in DiffEq common interface (#159)
Browse files Browse the repository at this point in the history
* Bump TaylorSeries minor version

* Minor update of DiffEq common interface (integrator.destats->integrator.stats)

* Update Project.toml
  • Loading branch information
PerezHz authored Mar 11, 2023
1 parent ca657b7 commit e3370e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TaylorIntegration"
uuid = "92b13dbe-c966-51a2-8445-caca9f8a7d42"
repo = "https://github.com/PerezHz/TaylorIntegration.jl.git"
version = "0.11.0"
version = "0.11.1"

[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
Expand Down Expand Up @@ -32,7 +32,7 @@ RecursiveArrayTools = "2"
Reexport = "0.2, 1"
Requires = "0.5.2, 1"
StaticArrays = "0.12.5, 1"
TaylorSeries = "0.13"
TaylorSeries = "0.14"
julia = "1"

[extras]
Expand Down
8 changes: 4 additions & 4 deletions src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function initialize!(integrator, c::TaylorMethodConstantCache)
integrator.kshortsize = 2
integrator.k = typeof(integrator.k)(undef, integrator.kshortsize)
integrator.fsalfirst = integrator.f(integrator.uprev, integrator.p, integrator.t) # Pre-start fsal
integrator.destats.nf += 1
integrator.stats.nf += 1
# Avoid undefined entries if k is an array of arrays
integrator.fsallast = zero(integrator.fsalfirst)
integrator.k[1] = integrator.fsalfirst
Expand All @@ -151,7 +151,7 @@ function perform_step!(integrator,cache::TaylorMethodConstantCache)
cache.uT[0] = u
__jetcoeffs!(Val(cache.parse_eqs.x), f, tT, cache.uT, p, cache.rv)
k = f(u, p, t+dt) # For the interpolation, needs k at the updated point
integrator.destats.nf += 1
integrator.stats.nf += 1
integrator.fsallast = k
integrator.k[1] = integrator.fsalfirst
integrator.k[2] = integrator.fsallast
Expand All @@ -170,7 +170,7 @@ function initialize!(integrator, cache::TaylorMethodCache)
integrator.k[1] = integrator.fsalfirst
# integrator.f(integrator.fsalfirst,integrator.uprev,integrator.p,integrator.t)
integrator.fsalfirst = constant_term.(duT)
integrator.destats.nf += 1
integrator.stats.nf += 1
end

function perform_step!(integrator, cache::TaylorMethodCache)
Expand All @@ -184,7 +184,7 @@ function perform_step!(integrator, cache::TaylorMethodCache)
end
__jetcoeffs!(Val(parse_eqs.x), f, tT, uT, duT, uauxT, p, rv)
k = constant_term.(duT) # For the interpolation, needs k at the updated point
integrator.destats.nf += 1
integrator.stats.nf += 1
end

stepsize_controller!(integrator,alg::TaylorMethod) =
Expand Down

2 comments on commit e3370e4

@PerezHz
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/79425

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.11.1 -m "<description of version>" e3370e4d73108811f02c420f17fbc54ad75f827e
git push origin v0.11.1

Please sign in to comment.