Skip to content

Commit e2183d9

Browse files
prbzrgChrisRackauckas
authored andcommitted
pass u0 & p
1 parent 37c563a commit e2183d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/solve.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,11 @@ end
503503
function init_up(prob::DEProblem, sensealg, u0, p, args...; kwargs...)
504504
alg = extract_alg(args, kwargs, prob.kwargs)
505505
if isnothing(alg) # Default algorithm handling
506-
_prob = get_concrete_problem(prob, !(typeof(prob) <: DiscreteProblem); kwargs...)
506+
_prob = get_concrete_problem(prob, !(typeof(prob) <: DiscreteProblem); u0 = u0,
507+
p = p, kwargs...)
507508
init_call(_prob, args...; kwargs...)
508509
else
509-
_prob = get_concrete_problem(prob, isadaptive(alg); kwargs...)
510+
_prob = get_concrete_problem(prob, isadaptive(alg); u0 = u0, p = p, kwargs...)
510511
_alg = prepare_alg(alg, _prob.u0, _prob.p, _prob)
511512
check_prob_alg_pairing(_prob, alg) # alg for improved inference
512513
if length(args) > 1

0 commit comments

Comments
 (0)