ModelingToolkit.jl
ModelingToolkit.jl copied to clipboard
MTK cannot identify independent variables with new Symbolics convention
This works:
@variables t x[1](t)
Dt = Differential(t)
@named sys = ODESystem([Dt(x[1]) ~ 3])
This doesn't:
@variables t x(t)[1]
Dt = Differential(t)
@named sys = ODESystem([Dt(x[1]) ~ 3])
with the following error:
ArgumentError: Variable (x(t))[1] is not a function of independent variable SymbolicUtils.Term{Real, Nothing}[(x(t))[1]].
@shashi could you take a look?
Removed the bad constructor