Skip to content

add DAETS integrator #2609

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

add DAETS integrator #2609

wants to merge 9 commits into from

Conversation

tansongchen
Copy link

@tansongchen tansongchen commented Feb 21, 2025

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

see #524

Add any other context about the problem here.

@tansongchen tansongchen changed the title [WIP] Explicit Taylor methods Explicit Taylor methods and DAETS Feb 26, 2025
Comment on lines +93 to +95
ui = make_taylor(uprev, us[1:i]...)
ti = TaylorScalar{i}(t, one(t))
outi = make_taylor(ks[1:i+1]...)
Copy link
Member

Choose a reason for hiding this comment

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

For the in place versions, these should be part of the cache and mutated rather than allocating new ones each time.

dti *= dt
@.. u += dti * us[i + 1]
end
OrdinaryDiffEqCore.increment_nf!(integrator.stats, 3)
Copy link
Member

Choose a reason for hiding this comment

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

This should increment by P (or something like that), right?

@@ -0,0 +1,257 @@
# struct Tsit5ConstantCache <: OrdinaryDiffEqConstantCache end
Copy link
Member

Choose a reason for hiding this comment

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

this file isn't supposed to be here, right?

@@ -0,0 +1,352 @@
RK_WITH_SPECIAL_INTERPOLATIONS = Union{Tsit5ConstantCache, Tsit5Cache}
Copy link
Member

Choose a reason for hiding this comment

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

all of the stuff here is wrong (we should probably delete the file for now)

@test Σ[2, 2] == 2
end

println("DONE Signature Matrix Tests")
Copy link
Member

Choose a reason for hiding this comment

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

the @testset will do the printing, no need to add printlns manually.

return nothing
end

@muladd function perform_step!(integrator, cache::DAETSCache, repeat_step = false)
Copy link
Member

Choose a reason for hiding this comment

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

This is just the ExplicitTaylor2 implimentation? is the DAETS step missing?

@oscardssmith oscardssmith changed the title Explicit Taylor methods and DAETS add DAETS integrator Feb 27, 2025
@tansongchen tansongchen mentioned this pull request Mar 4, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants