Skip to content

Commit

Permalink
use default rng for thread tests
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsas committed Feb 11, 2025
1 parent a76170e commit 16ac07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/thread_safety.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let
ode_prob = ODEProblem(f!, u_0, (0.0, 10))
rate(u, p, t) = 1.0
jump!(integrator) = nothing
jump_prob = JumpProblem(ode_prob, Direct(), VariableRateJump(rate, jump!); rng)
jump_prob = JumpProblem(ode_prob, Direct(), VariableRateJump(rate, jump!))
prob_func(prob, i, repeat) = deepcopy(prob)
prob = EnsembleProblem(jump_prob,prob_func = prob_func)
solve(prob, Tsit5(), EnsembleThreads(), trajectories=10)
Expand Down

0 comments on commit 16ac07f

Please sign in to comment.