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 def4dc1 commit a41dca2Copy full SHA for a41dca2
test/constants.jl
@@ -37,3 +37,16 @@ eqs = [D(x) ~ β]
37
simp = structural_simplify(sys)
38
39
@test isempty(MT.collect_constants(nothing))
40
+
41
+@testset "Issue#3044" begin
42
+ @constants h = 1
43
+ @parameters τ = 0.5 * h
44
+ @variables x(MT.t_nounits) = h
45
+ eqs = [MT.D_nounits(x) ~ (h - x) / τ]
46
47
+ @mtkbuild fol_model = ODESystem(eqs, MT.t_nounits)
48
49
+ prob = ODEProblem(fol_model, [], (0.0, 10.0))
50
+ @test prob[x] ≈ 1
51
+ @test prob.ps[τ] ≈ 0.5
52
+end
0 commit comments