Skip to content

Commit 6528aeb

Browse files
committed
properly handle noise according to alias_noise
1 parent c55ab21 commit 6528aeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ function DiffEqBase.__init(
417417
end
418418
=#
419419
end
420-
elseif typeof(prob) <: DiffEqBase.AbstractRODEProblem && (!haskey(kwargs, :alias_noise) || kwargs[:alias_noise] == true)
421-
W = deepcopy(prob.noise)
420+
elseif typeof(prob) <: DiffEqBase.AbstractRODEProblem
421+
W = (!haskey(kwargs, :alias_noise) || kwargs[:alias_noise] == true) ? deepcopy(prob.noise) : prob.noise
422422
if W.reset
423423
if W.curt != t
424424
reinit!(W,t,t0=t)

0 commit comments

Comments
 (0)