Skip to content

Commit

Permalink
use recursivecopy, fix the default AliasSpecifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Dec 13, 2024
1 parent d2d5f61 commit c23e54e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/OrdinaryDiffEqCore/src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function DiffEqBase.__init(
userdata = nothing,
allow_extrapolation = alg_extrapolates(alg),
initialize_integrator = true,
alias = ODEAliasSpecifier(alias_u0 = false, alias_du0 = false, alias_p = true, alias_f = true),
alias = ODEAliasSpecifier(),
initializealg = DefaultInit(),
kwargs...) where {recompile_flag}
if prob isa DiffEqBase.AbstractDAEProblem && alg isa OrdinaryDiffEqAlgorithm
Expand Down Expand Up @@ -284,9 +284,9 @@ function DiffEqBase.__init(
if isnothing(aliases.alias_tstops) || aliases.alias_tstops
tstops = tstops
else
tstops = deepcopy(tstops)
tstops = recursivecopy(tstops)
end

if tstops isa AbstractArray || tstops isa Tuple || tstops isa Number
_tstops = nothing
else
Expand Down

0 comments on commit c23e54e

Please sign in to comment.