Skip to content

Commit

Permalink
Update lib/OrdinaryDiffEqRosenbrock/src/rosenbrock_caches.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Rackauckas <accounts@chrisrackauckas.com>
  • Loading branch information
ParamThakkar123 and ChrisRackauckas authored Aug 22, 2024
1 parent 71cc484 commit 5252290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OrdinaryDiffEqRosenbrock/src/rosenbrock_caches.jl
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ function alg_cache(
::Type{uBottomEltypeNoUnits}, ::Type{tTypeNoUnits}, uprev, uprev2, f, t,
dt, reltol, p, calck,
::Val{true}) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits}
dense = zeros(eltype(rate_prototype), 3)
dense = [zero(rate_protoype) for i in 1:3]
dus = zeros(eltype(rate_prototype), 3)
ks = zeros(eltype(rate_prototype), 9)
fsalfirst = zero(rate_prototype)
Expand Down

1 comment on commit 5252290

@ChrisRackauckas
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be done to all array initializations

Please sign in to comment.