Skip to content

Commit

Permalink
broadcast Base.:(/) for non-AbstractArray
Browse files Browse the repository at this point in the history
  • Loading branch information
apkille committed Aug 8, 2024
1 parent 85c4636 commit 0098ddc
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 @@ -283,7 +283,7 @@ function DiffEqBase.__init(
uprev = recursivecopy(u)

if !(uType <: AbstractArray)
rand_prototype = zero(u/u) # Strip units and type info
rand_prototype = zero(u ./ u) # Strip units and type info
randType = typeof(rand_prototype)
else
randElType = uBottomEltypeNoUnits # Strip units and type info
Expand Down

0 comments on commit 0098ddc

Please sign in to comment.