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 5e6556a commit 441565bCopy full SHA for 441565b
test/parameter_dependencies.jl
@@ -67,6 +67,20 @@ end
67
@test Set(full_parameters(sys)) == Set([p1, p2])
68
end
69
70
+@testset "getu with parameter deps" begin
71
+ @parameters p1=1.0 p2=1.0
72
+ @variables x(t)=0
73
+
74
+ @named sys = ODESystem(
75
+ [D(x) ~ p1 * t + p2],
76
+ t;
77
+ parameter_dependencies = [p2 => 2p1]
78
+ )
79
+ prob = ODEProblem(complete(sys))
80
+ get_dep = getu(prob, 2p2)
81
+ @test get_dep(prob) == 4
82
+end
83
84
@testset "Clock system" begin
85
dt = 0.1
86
@variables x(t) y(t) u(t) yd(t) ud(t) r(t) z(t)
0 commit comments