Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Feb 29, 2024
1 parent e7511d7 commit d08fefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/diffeqs/abstractodesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ function process_DEProblem(constructor, sys::AbstractODESystem, u0map, parammap;

# TODO: Pass already computed information to varmap_to_vars call
# in process_u0? That would just be a small optimization
varmap = (u0map !== nothing && isempty(u0map)) || eltype(u0map) <: Number ?
varmap = u0map === nothing || isempty(u0map) || eltype(u0map) <: Number ?
defaults(sys) :
merge(defaults(sys), todict(u0map))
varlist = collect(map(unwrap, dvs))
Expand Down

0 comments on commit d08fefe

Please sign in to comment.