Skip to content

Commit 0110360

Browse files
committed
reseed before reinit and include NoiseTransport
1 parent 44ed74e commit 0110360

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/solve.jl

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -414,20 +414,12 @@ function DiffEqBase.__init(
414414
elseif typeof(prob) <: DiffEqBase.AbstractRODEProblem
415415
W = prob.noise
416416
if W.reset
417-
if W.curt != t
418-
reinit!(W,t,t0=t)
419-
end
420417
# Reseed
421-
if typeof(W) <: NoiseProcess && W.reseed
418+
if typeof(W) <: Union{NoiseProcess, NoiseTransport} && W.reseed
422419
Random.seed!(W.rng,_seed)
423420
end
424-
if typeof(W) <: NoiseTransport && W.reseed
425-
Random.seed!(W.rng,_seed)
426-
#= if typeof(W.rv) <: AbstractArray
427-
W.RV(W.rng, W.rv)
428-
else
429-
W.rv = W.RV(W.rng)
430-
end =#
421+
if W.curt != t
422+
reinit!(W,t,t0=t)
431423
end
432424

433425
elseif W.curt != t

0 commit comments

Comments
 (0)