Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Sep 19, 2024
1 parent 681538e commit 0dfb039
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/OrdinaryDiffEqRosenbrock/src/stiff_addsteps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ function _ode_addsteps!(k, t, uprev, u, dt, f, p, cache::RosenbrockCombinedConst
end

for j in 1:size(H, 1)
k = zero(ks[1])
kj = zero(ks[1])
# Last stage doesn't affect ks
for i in 1:(num_stages - 1)
k = @.. k1 + H[j, i] * ks[i]
kj = @.. kj + H[j, i] * ks[i]
end
copyat_or_push!(k, j, k)
copyat_or_push!(k, j, kj)
end
end
nothing
Expand Down

0 comments on commit 0dfb039

Please sign in to comment.