Skip to content

Commit

Permalink
remove remake from remake_prob
Browse files Browse the repository at this point in the history
  • Loading branch information
ivborissov committed Jul 20, 2023
1 parent 181d188 commit a06c4f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ode_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ function remake_prob(scen::Scenario, params::NamedTuple; safetycopy=true)
if length(params) > 0
constants_total = merge_strict(scen.parameters, params)
u0, p0 = scen.init_func(constants_total)
return remake(prob0; u0=u0, p=p0)
prob0.u0 .= u0
prob0.p .= p0
return prob0
#return remake(prob0; u0=u0, p=p0)
else
return prob0
end
Expand Down

0 comments on commit a06c4f6

Please sign in to comment.