Skip to content

Commit

Permalink
Consistent variable creation
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Jan 17, 2024
1 parent 3fbbdb0 commit c7d6667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/model_parsing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function generate_var!(dict, a, b, varclass;
vd isa Vector && (vd = first(vd))
vd[a] = Dict{Symbol, Any}()
var = if indices === nothing
Symbolics.variable(a, T = SymbolicUtils.FnType{Tuple{Real}, Real})(iv)
Symbolics.variable(a, T = SymbolicUtils.FnType{Tuple{Any}, Real})(iv)
else
vd[a][:size] = Tuple(lastindex.(indices))
first(@variables $a(iv)[indices...])
Expand Down

0 comments on commit c7d6667

Please sign in to comment.