diff --git a/src/initdt.jl b/src/initdt.jl index b99c01c491..f55733a521 100644 --- a/src/initdt.jl +++ b/src/initdt.jl @@ -43,8 +43,7 @@ f(f₀, u0, p, t) else # TODO: use more caches - f₀ = similar(first(get_tmp_cache(integrator)), size(u0)) - fill!(f₀, zero(eltype(f₀))) + f₀ = zeros(first(get_tmp_cache(integrator)), size(u0)) f(f₀, u0, p, t) end