@@ -46,7 +46,7 @@ When initializing a `CoupledODEs`, you can specify the solver that will integrat
4646`f` in time, along with any other integration options, using the `diffeq` keyword.
4747For example you could use `diffeq = (abstol = 1e-9, reltol = 1e-9)`.
4848If you want to specify a solver, do so by using the keyword `alg`, e.g.:
49- `diffeq = (alg = Tsit5(), maxiters = 100000 )`. This requires you to have been first
49+ `diffeq = (alg = Tsit5(), reltol = 1e-6 )`. This requires you to have been first
5050`using OrdinaryDiffEq` to access the solvers. The default `diffeq` is:
5151
5252$(DynamicalSystemsBase. DEFAULT_DIFFEQ)
@@ -55,7 +55,8 @@ $(DynamicalSystemsBase.DEFAULT_DIFFEQ)
5555](http://docs.juliadiffeq.org/latest/features/callback_functions.html), however the
5656majority of downstream functions in DynamicalSystems.jl assume that `f` is differentiable.
5757
58- The convenience constructor `CoupledODEs(prob::ODEProblem, diffeq)` is also available.
58+ The convenience constructor `CoupledODEs(prob::ODEProblem, diffeq)` and
59+ `CoupledODEs(ds::CoupledODEs, diffeq)` are also available.
5960
6061Dev note: `CoupledODEs` is a light wrapper of `ODEIntegrator` from DifferentialEquations.jl.
6162The integrator is available as the field `integ`, and the `ODEProblem` is `integ.sol.prob`.
@@ -83,6 +84,7 @@ function CoupledODEs(f, u0, p = SciMLBase.NullParameters(); t0 = 0, diffeq = DEF
8384 prob = ODEProblem {IIP} (f, s, (T (t0), T (Inf )), p)
8485 return CoupledODEs (prob, diffeq)
8586end
87+ CoupledODEs (ds:: CoupledODEs , diffeq) = CoupledODEs (ODEProblem (ds), diffeq)
8688# Below `special_kwargs` is undocumented internal option for passing `internalnorm`
8789function CoupledODEs (prob:: ODEProblem , diffeq = DEFAULT_DIFFEQ; special_kwargs... )
8890 IIP = isinplace (prob)
0 commit comments