Skip to content

Commit e2c81c8

Browse files
committed
reseed noise transport
1 parent c32a132 commit e2c81c8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/solve.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,15 @@ function DiffEqBase.__init(
421421
if typeof(W) <: NoiseProcess && W.reseed
422422
Random.seed!(W.rng,_seed)
423423
end
424+
if typeof(W) <: NoiseTransport && W.reseed
425+
Random.seed!(W.rng,_seed)
426+
if typeof(W.rv) <: AbstractArray
427+
W.draw(W.rng, W.rv)
428+
else
429+
W.rv = W.draw(W.rng)
430+
end
431+
end
432+
424433
elseif W.curt != t
425434
error("Starting time in the noise process is not the starting time of the simulation. The noise process should be re-initialized for repeated use")
426435
end

0 commit comments

Comments
 (0)