Skip to content

Commit

Permalink
promote_type u0
Browse files Browse the repository at this point in the history
  • Loading branch information
ivborissov committed Jul 11, 2023
1 parent e2e4ea7 commit 2b54510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ode_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function build_ode_problem( # used in Scenario constructor only
end

# saving setup
utype = Real #tmp change to make AD work #eltype(u0)
utype = promote_type(eltype(u0), eltype(p0)) #change to make AD work
merged_observables = isnothing(observables_) ? observables(model) : observables_ # use default if not set
saved_values = SavedValues(
LArray{utype,1,Array{utype,1},Tuple(merged_observables)}[],
Expand Down

0 comments on commit 2b54510

Please sign in to comment.