Skip to content

Commit

Permalink
fixup! fix: fix initialization with defaults dependent on indepvar
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Aug 7, 2024
1 parent 8b05841 commit f15af5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/systems/diffeqs/abstractodesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,8 @@ function process_DEProblem(constructor, sys::AbstractODESystem, u0map, parammap;
end

if has_index_cache(sys) && get_index_cache(sys) !== nothing
u0, defs = get_u0(sys, trueinit, parammap; symbolic_u0, t0 = t)
u0, defs = get_u0(sys, trueinit, parammap; symbolic_u0,
t0 = constructor <: Union{DDEFunction, SDDEFunction} ? nothing : t)
check_eqs_u0(eqs, dvs, u0; kwargs...)
p = if parammap === nothing ||
parammap == SciMLBase.NullParameters() && isempty(defs)
Expand All @@ -843,7 +844,7 @@ function process_DEProblem(constructor, sys::AbstractODESystem, u0map, parammap;
parammap;
tofloat,
use_union,
t0 = t,
t0 = constructor <: Union{DDEFunction, SDDEFunction} ? nothing : t,
symbolic_u0)
p, split_idxs = split_parameters_by_type(p)
if p isa Tuple
Expand Down

0 comments on commit f15af5e

Please sign in to comment.