Skip to content

Commit 2eb08b0

Browse files
committed
reduce event test SDE noise and ensure the fifth event type is triggered
1 parent d30833d commit 2eb08b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/reactionsystem_core/events.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ let
208208
end
209209

210210
(p, dX), 0 <--> X
211-
(p, dY), 0 <--> Y
211+
(1.1*p, dY), 0 <--> Y
212212
end
213213

214214
# Creates model programmatically.
@@ -218,7 +218,7 @@ let
218218
rxs = [
219219
Reaction(p, nothing, [X], nothing, [1])
220220
Reaction(dX, [X], nothing, [1], nothing)
221-
Reaction(p, nothing, [Y], nothing, [1])
221+
Reaction(1.1*p, nothing, [Y], nothing, [1])
222222
Reaction(dY, [Y], nothing, [1], nothing)
223223
]
224224
continuous_events = [
@@ -236,9 +236,9 @@ let
236236
# Tests that approaches yield identical results.
237237
@test isequal(rn_dsl, rn_prog)
238238

239-
u0 = [X => 5.0, Y => 3.0, Z => 3.5]
239+
u0 = [X => 6.0, Y => 4.5, Z => 5.5]
240240
tspan = (0.0, 20.0)
241-
ps = [p => 1.0, dX => 0.05, dY => 0.05, dY_up => 0.01]
241+
ps = [p => 0.5, dX => 0.025, dY => 0.025, dY_up => 0.01]
242242

243243
sol_dsl = solve(ODEProblem(rn_dsl, u0, tspan, ps), Tsit5())
244244
sol_prog = solve(ODEProblem(rn_prog, u0, tspan, ps), Tsit5())

0 commit comments

Comments
 (0)