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 3539901 commit a731addCopy full SHA for a731add
test/odesystem.jl
@@ -1573,3 +1573,13 @@ end
1573
prob = ODEProblem(sys, [x => 1.0], (0.0, 1.0))
1574
@test prob.problem_type == "A"
1575
end
1576
+
1577
+# https://github.com/SciML/ModelingToolkit.jl/issues/3737
1578
+@testset "ODE with multivariate variables" begin
1579
+ @parameters k
1580
+ @variables x(t, k) y(t, k) # equivalent to x(t) and y(t)
1581
+ @mtkbuild sys = System([D(x) ~ 0, y ~ x + 1], t)
1582
+ prob = ODEProblem(sys, [x => 0.0], (0.0, 1.0))
1583
+ @test prob[x] == 0.0 # unknown
1584
+ @test prob[y] == 1.0 # observed
1585
+end
0 commit comments