Skip to content

Commit 6cf5985

Browse files
committed
deepcopy integrator instead
1 parent 24fe115 commit 6cf5985

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
@@ -5,7 +5,7 @@ function DiffEqBase.__solve(prob::DiffEqBase.AbstractRODEProblem,
55
kwargs...) where recompile_flag
66
integrator = DiffEqBase.__init(prob,alg,timeseries,ts,recompile;kwargs...)
77
solve!(integrator)
8-
integrator.sol
8+
deepcopy(integrator.sol)
99
end
1010

1111
# Make it easy to grab the RODEProblem/SDEProblem/DiscreteProblem from the keyword arguments
@@ -412,7 +412,7 @@ function DiffEqBase.__init(
412412
=#
413413
end
414414
elseif typeof(prob) <: DiffEqBase.AbstractRODEProblem
415-
W = deepcopy(prob.noise)
415+
W = prob.noise
416416
if W.reset
417417
if W.curt != t
418418
reinit!(W,t,t0=t)

0 commit comments

Comments
 (0)