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 c49d619 commit a1268c1Copy full SHA for a1268c1
test/reduction.jl
@@ -347,3 +347,9 @@ ss = alias_elimination(sys)
347
@test length(equations(ss)) == length(unknowns(ss)) == 1
348
ss = mtkcompile(sys)
349
@test length(equations(ss)) == length(unknowns(ss)) == 2
350
+
351
+@testset "Aliases of differential variables with higher state priority are swapped" begin
352
+ @variables x(t) y(t)
353
+ @mtkcompile sys = System([D(x) ~ 2x, y ~ x], t; state_priorities = [y => 10])
354
+ @test isequal(only(unknowns(sys)), y)
355
+end
0 commit comments