Skip to content

Commit

Permalink
fix VectorizedRNG to only the no seed case
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed May 18, 2020
1 parent 03f8294 commit e0771be
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -289,19 +289,13 @@ function DiffEqBase.__init(
if typeof(prob) <: DiffEqBase.AbstractRODEProblem && prob.noise === nothing
rswm = isadaptive(alg) ? RSWM(adaptivealg=:RSwM3) : RSWM(adaptivealg=:RSwM1)
if isinplace(prob)
_rng = typeof(prob.u0) <: Array{Float64} ? VectorizedRNG.local_rng(_seed) :
Xorshifts.Xoroshiro128Plus(_seed)
#if isadaptive(alg) || callback !== nothing
if alg_needs_extra_process(alg)
W = WienerProcess!(t,rand_prototype,rand_prototype,
save_everystep=save_noise,
rng = _rng)
else
W = WienerProcess!(t,rand_prototype,
save_everystep=save_noise,
rng = _rng)
end
#=
_rng = typeof(prob.u0) <: Array{Float64} && seed !== nothing ?
VectorizedRNG.local_rng() :
Xorshifts.Xoroshiro128Plus(_seed)
if alg_needs_extra_process(alg)
W = constructor(t,rand_prototype,rand_prototype,
save_everystep=save_noise,
rng = _rng)
else
if alg_needs_extra_process(alg)
W = SimpleWienerProcess!(t,rand_prototype,rand_prototype,
Expand Down

0 comments on commit e0771be

Please sign in to comment.