Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deepcopy prob.noise #496

Merged
merged 18 commits into from
Sep 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function DiffEqBase.__solve(prob::DiffEqBase.AbstractRODEProblem,
kwargs...) where recompile_flag
integrator = DiffEqBase.__init(prob,alg,timeseries,ts,recompile;kwargs...)
solve!(integrator)
integrator.sol
deepcopy(integrator.sol)
rmsrosa marked this conversation as resolved.
Show resolved Hide resolved
end

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