Skip to content

Commit

Permalink
avoid aliasing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Nov 15, 2023
1 parent e8cdba3 commit 077cff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function DiffEqBase.__init(prob::Union{DiffEqBase.AbstractODEProblem,
if prob isa DAEProblem
rate_prototype = prob.du0
else
rate_prototype = DiffEqBase._rate_prototype(u, t, one(t))
rate_prototype = zero.(DiffEqBase._rate_prototype(u, t, one(t)))
end
rateType = typeof(rate_prototype) ## Can be different if unitful

Expand Down

0 comments on commit 077cff3

Please sign in to comment.