Skip to content

Commit 094d736

Browse files
test: specify seed for SDDE solve
1 parent caa236a commit 094d736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/dde.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pmul = [1.0,
7474

7575
prob = SDDEProblem(hayes_modelf, hayes_modelg, [1.0], h, tspan, pmul;
7676
constant_lags = (pmul[1],));
77-
sol = solve(prob, RKMil())
77+
sol = solve(prob, RKMil(), seed = 100)
7878

7979
@variables x(..)
8080
@parameters a=-4.0 b=-2.0 c=10.0 α=-1.3 β=-1.2 γ=1.1
@@ -87,7 +87,7 @@ eqs = [D(x(t)) ~ a * x(t) + b * x(t - τ) + c + (α * x(t) + γ) * η]
8787
@test equations(sys) == [D(x(t)) ~ a * x(t) + b * x(t - τ) + c]
8888
@test isequal(ModelingToolkit.get_noiseeqs(sys), [α * x(t) + γ])
8989
prob_mtk = SDDEProblem(sys, [x(t) => 1.0 + t], tspan; constant_lags = (τ,));
90-
@test_nowarn sol_mtk = solve(prob_mtk, RKMil())
90+
@test_nowarn sol_mtk = solve(prob_mtk, RKMil(), seed = 100)
9191

9292
prob_sa = SDDEProblem(
9393
sys, [x(t) => 1.0 + t], tspan; constant_lags = (τ,), u0_constructor = SVector{1})

0 commit comments

Comments
 (0)