Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Dispatch for TaylorIntegrationDiffEqExt.TaylorMethodCache #202

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ext/TaylorIntegrationDiffEqExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,22 @@
integrator.stats.nf += 1
end

function get_fsalfirstlast!(cache::TaylorMethodCache, f, t,

Check warning on line 199 in ext/TaylorIntegrationDiffEqExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/TaylorIntegrationDiffEqExt.jl#L199

Added line #L199 was not covered by tests
u, uprev, p, tT, uT, duT, uauxT
)
fsalfirst = zero(rate_prototype)
fsallast = zero(rate_prototype)
if parse_eqs[]
fsalfirst = f(t, u, p)
fsallast = f(t, u, p)

Check warning on line 206 in ext/TaylorIntegrationDiffEqExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/TaylorIntegrationDiffEqExt.jl#L202-L206

Added lines #L202 - L206 were not covered by tests
else
TaylorIntegration.__jetcoeffs!(Val(false), f, tT, uT, duT, uauxT, p, cache.rv)
fsalfirst = constant_term.(duT)
fsallast = constant_term.(duT)

Check warning on line 210 in ext/TaylorIntegrationDiffEqExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/TaylorIntegrationDiffEqExt.jl#L208-L210

Added lines #L208 - L210 were not covered by tests
end
return fsalfirst, fsallast

Check warning on line 212 in ext/TaylorIntegrationDiffEqExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/TaylorIntegrationDiffEqExt.jl#L212

Added line #L212 was not covered by tests
end

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
Loading