Skip to content

Commit f6df5dc

Browse files
committed
Forward system in ODEFunction expression
1 parent e16c180 commit f6df5dc

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelingToolkit"
22
uuid = "961ee093-0014-501f-94e3-6117800e7a78"
33
authors = ["Yingbo Ma <mayingbo5@gmail.com>", "Chris Rackauckas <accounts@chrisrackauckas.com> and contributors"]
4-
version = "9.13.0"
4+
version = "9.14.0"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

src/systems/diffeqs/abstractodesystem.jl

+1
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ function ODEFunctionExpr{iip}(sys::AbstractODESystem, dvs = unknowns(sys),
752752
$_jac
753753
M = $_M
754754
ODEFunction{$iip}($fsym,
755+
sys = $sys,
755756
jac = $jacsym,
756757
tgrad = $tgradsym,
757758
mass_matrix = M,

test/odesystem.jl

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ for f in [
5858
ODEFunction(de, [x, y, z], [σ, ρ, β], tgrad = true, jac = true),
5959
eval(ODEFunctionExpr(de, [x, y, z], [σ, ρ, β], tgrad = true, jac = true))
6060
]
61+
# system
62+
@test f.sys === de
63+
6164
# iip
6265
du = zeros(3)
6366
u = collect(1:3)

0 commit comments

Comments
 (0)