Skip to content

Commit 95579a2

Browse files
Parameters are not functions
1 parent e57f211 commit 95579a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/diffeqs/modelingtoolkitize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function modelingtoolkitize(prob::DiffEqBase.ODEProblem)
1717
var(x, i) = Num(Sym{FnType{Tuple{symtype(t)}, Real}}(nameof(Variable(x, i))))
1818
vars = reshape([var(:x, i)(value(t)) for i in eachindex(prob.u0)],size(prob.u0))
1919
params = p isa DiffEqBase.NullParameters ? [] :
20-
reshape([Num(Sym{FnType{Tuple{},Real}}(nameof(Variable(, i))))() for i in eachindex(p)],size(p))
20+
reshape([Num(Sym{Real}(nameof(Variable(, i)))) for i in eachindex(p)],size(p))
2121

2222
@derivatives D'~t
2323

0 commit comments

Comments
 (0)