Skip to content

Commit 06da09e

Browse files
committed
Forward system in ODEFunction expression
1 parent 7e0917f commit 06da09e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
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 <[email protected]>", "Chris Rackauckas <[email protected]> and contributors"]
4-
version = "8.75.0"
4+
version = "8.76.0"
55

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

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ function ODEFunctionExpr{iip}(sys::AbstractODESystem, dvs = states(sys),
747747
$_jac
748748
M = $_M
749749
ODEFunction{$iip}($fsym,
750+
sys = $sys,
750751
jac = $jacsym,
751752
tgrad = $tgradsym,
752753
mass_matrix = M,

test/odesystem.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ for f in [
5555
ODEFunction(de, [x, y, z], [σ, ρ, β], tgrad = true, jac = true),
5656
eval(ODEFunctionExpr(de, [x, y, z], [σ, ρ, β], tgrad = true, jac = true)),
5757
]
58+
# system
59+
@test f.sys === de
60+
5861
# iip
5962
du = zeros(3)
6063
u = collect(1:3)

0 commit comments

Comments
 (0)