1- using OrdinaryDiffEq : Tsit5
1+ using OrdinaryDiffEqTsit5 : Tsit5
22using SciMLBase: ODEProblem, DEIntegrator, u_modified!, __init
33export CoupledODEs, ContinuousDynamicalSystem
44
@@ -46,7 +46,8 @@ When initializing a `CoupledODEs`, you can specify the solver that will integrat
4646For example you could use `diffeq = (abstol = 1e-9, reltol = 1e-9)`.
4747If you want to specify a solver, do so by using the keyword `alg`, e.g.:
4848`diffeq = (alg = Tsit5(), reltol = 1e-6)`. This requires you to have been first
49- `using OrdinaryDiffEq` to access the solvers. The default `diffeq` is:
49+ `using OrdinaryDiffEq` (or smaller library package such as `OrdinaryDiffEqVerner`)
50+ to access the solvers. The default `diffeq` is:
5051
5152$(DynamicalSystemsBase. DEFAULT_DIFFEQ)
5253
@@ -55,14 +56,13 @@ $(DynamicalSystemsBase.DEFAULT_DIFFEQ)
5556
5657The convenience constructors `CoupledODEs(prob::ODEProblem [, diffeq])` and
5758`CoupledODEs(ds::CoupledODEs [, diffeq])` are also available.
59+ Use `ODEProblem(ds::CoupledODEs, tspan = (t0, Inf))` to obtain the problem.
60+
5861To integrate with ModelingToolkit.jl, the dynamical system **must** be created
5962via the `ODEProblem` (which itself is created via ModelingToolkit.jl), see
6063the Tutorial for an example.
6164
6265Dev note: `CoupledODEs` is a light wrapper of `ODEIntegrator` from DifferentialEquations.jl.
63- The integrator is available as the field `integ`, and the `ODEProblem` is `integ.sol.prob`.
64- The convenience syntax `ODEProblem(ds::CoupledODEs, tspan = (t0, Inf))` is available
65- to extract the problem.
6666"""
6767struct CoupledODEs{IIP, D, I, P} <: ContinuousTimeDynamicalSystem
6868 integ:: I
0 commit comments