-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Make Sundials.jl API compatible with ODE.jl #10
Comments
+1. Sundials.jl may also be a good place to try out the iteration API being On Fri, Mar 14, 2014 at 4:48 AM, Ivar Nesje [email protected]:
|
Is this still desirable? My guess is yes. What about the output format, specifically making |
I think in an ideal world one should be able to switch between solvers from ODE.jl and the basic solvers provided by Sundials.jl without too much hassle. This implies that the output format should be the same, but as you observed there is still some debate about the best format. The situation should become better if we switch to an iterator-like interface in ODE.jl (SciML/ODE.jl#49). This should be easy to do for Sundials.jl as well. Collecting and storing the solutions in some container ( |
This has been achieved with the common interface in common.jl. You can read the whole thing if you want here: A PR just merged which implements the common interface code (which used to be in DifferentialEquations.jl, then in OrdinaryDiffEq.jl, but now in Sundials.jl) for a type-based interface: solve(prob,alg;kwargs...) where if With these changes DifferentialEquations.jl has become a metapackage for the common interface, with Sundials.jl being one of the constituent packages (along with OrdinaryDiffEq.jl and ODE.jl). DifferentialEquations.jl's docs have become the docs for the common interface, and you can see here the algorithms which are currently included: https://juliadiffeq.github.io/DiffEqDocs.jl/latest/solvers/ode_solve.html Sundials is not compatible with the full common interface yet (this is the specification of the full interface: https://juliadiffeq.github.io/DiffEqDocs.jl/latest/basics/common_solver_opts.html ) but hopefully it will be soon. For an example for using the common interface, see the tutorials: https://juliadiffeq.github.io/DiffEqDocs.jl/latest/tutorials/ode_example.html |
Closing since now both CVode and IDA are on the common interface, matching OrdinaryDiffEq.jl, ODEInterface.jl, and ODE.jl |
This package has seen little updates since it was first created, long long ago, before keyword arguments was part of Julia.
The recent API discussions in ODE.jl, has resulted in an API draft, that should (probably) be followed in Sundials.jl aswell. The first PR in this direction has already been merged.
The text was updated successfully, but these errors were encountered: