Skip to content

Commit bc7e166

Browse files
committed
Merge error
1 parent 0d73cfd commit bc7e166

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
@@ -18,7 +18,7 @@ function modelingtoolkitize(prob::DiffEqBase.ODEProblem)
1818

1919
var(x, i) = Num(Sym{FnType{Tuple{symtype(t)}, Real}}(nameof(Variable(x, i))))
2020
vars = ArrayInterface.restructure(prob.u0,[var(:x, i)(ModelingToolkit.value(t)) for i in eachindex(prob.u0)])
21-
params = has_p ? reshape([Num(Sym{Parameter{Real}}(nameof(Variable(, i)))) for i in eachindex(p)],size(p)) : []
21+
params = has_p ? reshape([Num(toparam(Sym{Real}(nameof(Variable(, i))))) for i in eachindex(p)],size(p)) : []
2222
var_set = Set(vars)
2323

2424
D = Differential(t)

0 commit comments

Comments
 (0)