-
-
Notifications
You must be signed in to change notification settings - Fork 49
Iterator versions of ODE solvers #27
Comments
I'm very amused to see this (as well as other convergent discussions), as I've been secretly working on writing IterativeSolvers as iterators and I really like how it's turning out. See this gist for a working implementation of conjugate gradients. |
Also observing parallel discussions about APIs makes me think that we should work toward a closer interface for both ODE.jl and IterativeSolvers.jl, especially since many of the latter can be interpreted as Galerkin-type discretizations of the former. |
This is a fantastic idea - it solves so many problems at once. Event functions are really a quite hairy solution to a problem that this approach could possibly solve much better. It would also be entirely possible to wrap the current implementation in an iterative approach:
This has the disadvantage of not giving a solution point exactly at |
I think the iteration interface is a good thing to explore to see if we have the flexibility we need. It seems to solve some problems, and we can probably extend the @tlycken |
@ivarne Overshooting is an entirely separate problem, to which a keyword argument with a boundary value may or may not be a good solution. (And I'll get back to it shortly.) For now, I was simply referring to the fact that when I call |
I was thinking about #11 and just relaised that an iterator version of the ODE solvers might be a viable solution. As this is a different idea than the event function, I opened a new issue.
This can also be very convenient for plotting partial results and to be able to track the solvers progress.
The text was updated successfully, but these errors were encountered: