Skip to content

Commit 2e71485

Browse files
committed
Define t_nounits, t_unitful and t with @independent_variables
1 parent 20bb3c6 commit 2e71485

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ModelingToolkit.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ for S in subtypes(ModelingToolkit.AbstractSystem)
184184
end
185185

186186
const t_nounits = let
187-
only(@parameters t)
187+
only(@independent_variables t)
188188
end
189189
const t_unitful = let
190-
only(@parameters t [unit = Unitful.u"s"])
190+
only(@independent_variables t [unit = Unitful.u"s"])
191191
end
192192
const t = let
193-
only(@parameters t [unit = DQ.u"s"])
193+
only(@independent_variables t [unit = DQ.u"s"])
194194
end
195195

196196
const D_nounits = Differential(t_nounits)

0 commit comments

Comments
 (0)