Skip to content

Commit

Permalink
remake prob changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ivborissov committed Feb 2, 2025
1 parent 7fd98b3 commit eb814df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ode_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ function remake_prob(prob::ODEProblem, init_func::Function, params::NamedTuple;
prob0.p .= p0
return prob0
else
return remake(prob0; p=p0)
prob1 = remake(prob0; p=p0)
prob0 = nothing
return prob1
end
else
return prob0
Expand Down

0 comments on commit eb814df

Please sign in to comment.