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

Defect control adaptivity #12

Closed
ChrisRackauckas opened this issue Jun 17, 2017 · 0 comments · Fixed by #89
Closed

Defect control adaptivity #12

ChrisRackauckas opened this issue Jun 17, 2017 · 0 comments · Fixed by #89

Comments

@ChrisRackauckas
Copy link
Member

http://epubs.siam.org/doi/pdf/10.1137/S1064827593251496
http://cs.stmarys.ca/~muir/ShampineMuirXu2006.pdf
http://epubs.siam.org/doi/pdf/10.1137/0912052

The next step should be adaptivity. A really nice way to handle the interpolations in a way that can be used internally is to simply add them to the solution object, and use that solution object on the inside. You can actually see this done in OrdinaryDiffEq.jl here:

https://github.com/JuliaDiffEq/OrdinaryDiffEq.jl/blob/master/src/solve.jl#L250

So the steps for a defect control are:

  1. Add a way to call an interpolation scheme on the sol type (which is algorithm-dependent). You might want to match OrdinaryDiffEq.jl for this, though it's quite complicated. We should discuss this.
  2. Change the timing that the solution is built so it's built before the rest of the routine, and your solver routine just updates the sol.u and sol.t parts (this should actually require no change if the pointers are setup correctly!)
  3. Then, the parts of the adaptive algorithm which require using the continuous extension for the defect, you can just call sol(t) (just like a user would).

The nice thing about this is that if you get the interpolation on the sol type right, then it'll work both internally and for users just the same. Also, this means you can pass the "current sol" to the bc!, making it exactly the same as the Shooting setup and allowing conditions on the interpolation.

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 a pull request may close this issue.

1 participant