Skip to content

Commit bb56a96

Browse files
authored
reduce OrdinaryDiffEq dependency (#216)
1 parent 7d0601e commit bb56a96

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name = "DynamicalSystemsBase"
22
uuid = "6e36e845-645a-534a-86f2-f5d4aa5a06b4"
33
repo = "https://github.com/JuliaDynamics/DynamicalSystemsBase.jl.git"
4-
version = "3.9.1"
4+
version = "3.10.0"
55

66
[deps]
77
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
88
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
9-
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
9+
OrdinaryDiffEqTsit5 = "b1df2697-797e-41e3-8120-5422d3b24e4a"
1010
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1111
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
1212
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
@@ -17,7 +17,7 @@ SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
1717

1818
[compat]
1919
ForwardDiff = "0.10"
20-
OrdinaryDiffEq = "6"
20+
OrdinaryDiffEqTsit5 = "1.1"
2121
Reexport = "1"
2222
Roots = "1, 2"
2323
SciMLBase = "1.19.5, 2"

src/core_systems/continuous_time_ode.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using OrdinaryDiffEq: Tsit5
1+
using OrdinaryDiffEqTsit5: Tsit5
22
using SciMLBase: ODEProblem, DEIntegrator, u_modified!, __init
33
export CoupledODEs, ContinuousDynamicalSystem
44

@@ -46,7 +46,8 @@ When initializing a `CoupledODEs`, you can specify the solver that will integrat
4646
For example you could use `diffeq = (abstol = 1e-9, reltol = 1e-9)`.
4747
If 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
5657
The 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+
5861
To integrate with ModelingToolkit.jl, the dynamical system **must** be created
5962
via the `ODEProblem` (which itself is created via ModelingToolkit.jl), see
6063
the Tutorial for an example.
6164
6265
Dev 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
"""
6767
struct CoupledODEs{IIP, D, I, P} <: ContinuousTimeDynamicalSystem
6868
integ::I

0 commit comments

Comments
 (0)