Skip to content

Commit

Permalink
add use of alias_f, alias_p kwargs for ODiffEq
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Dec 11, 2024
1 parent 75449c2 commit 0454f1c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/OrdinaryDiffEqCore/src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,18 @@ function DiffEqBase.__init(
else
_alg = alg
end
f = prob.f
p = prob.p

if aliases.alias_f
f = prob.f
else
f = deepcopy(prob.f)
end

if aliases.alias_p
p = prob.p
else
p = recursivecopy(prob.p)
end

use_old_kwargs = haskey(kwargs,:alias_u0) || haskey(kwargs,:alias_du0)

Expand Down

0 comments on commit 0454f1c

Please sign in to comment.