We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a00bdf commit f8c8a9eCopy full SHA for f8c8a9e
test/odesystem.jl
@@ -1264,3 +1264,10 @@ end
1264
fn2, = ModelingToolkit.generate_function(sys2; expression = Val{false})
1265
@test_nowarn fn2(ones(4), 2ones(6), 4.0)
1266
end
1267
+
1268
+@testset "Independent variable as system property" begin
1269
+ @variables x(t)
1270
+ @named sys = ODESystem([x ~ t], t)
1271
+ @named sys = compose(sys, sys) # nest into a hierarchical system
1272
+ @test t === sys.t === sys.sys.t
1273
+end
0 commit comments