Skip to content

Commit

Permalink
maybe fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith authored Nov 9, 2023
1 parent d110878 commit 8356a5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/initdt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
f(f₀, u0, p, t)
else
# TODO: use more caches
f₀ = zeros(first(get_tmp_cache(integrator)), size(u0))
f₀ = similar(first(get_tmp_cache(integrator)), size(u0))
f₀ = zero.(f₀)
f(f₀, u0, p, t)
end

Expand Down

0 comments on commit 8356a5a

Please sign in to comment.