From c23e54ead503465636d6142e142e476cf704dbb7 Mon Sep 17 00:00:00 2001 From: jClugstor Date: Fri, 13 Dec 2024 11:40:53 -0500 Subject: [PATCH] use recursivecopy, fix the default AliasSpecifier --- lib/OrdinaryDiffEqCore/src/solve.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/OrdinaryDiffEqCore/src/solve.jl b/lib/OrdinaryDiffEqCore/src/solve.jl index a6ad0933a2..bde6ddea77 100644 --- a/lib/OrdinaryDiffEqCore/src/solve.jl +++ b/lib/OrdinaryDiffEqCore/src/solve.jl @@ -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 @@ -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