Skip to content

Commit 044b6da

Browse files
reseed even custom noise process
1 parent e30a535 commit 044b6da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/solve.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,14 @@ function init{uType,tType,isinplace,algType<:Union{AbstractRODEAlgorithm,Abstrac
304304
if W.t[end] != t
305305
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")
306306
end
307+
# Reseed
308+
if typeof(W) <: NoiseProcess
309+
if prob.seed != 0
310+
srand(W.rng,seed)
311+
else
312+
srand(W.rng,seed)
313+
end
314+
end
307315
end
308316

309317
EEst = tTypeNoUnits(1)

0 commit comments

Comments
 (0)