Skip to content

Commit 0dfb039

Browse files
committed
typo
1 parent 681538e commit 0dfb039

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/OrdinaryDiffEqRosenbrock/src/stiff_addsteps.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ function _ode_addsteps!(k, t, uprev, u, dt, f, p, cache::RosenbrockCombinedConst
106106
end
107107

108108
for j in 1:size(H, 1)
109-
k = zero(ks[1])
109+
kj = zero(ks[1])
110110
# Last stage doesn't affect ks
111111
for i in 1:(num_stages - 1)
112-
k = @.. k1 + H[j, i] * ks[i]
112+
kj = @.. kj + H[j, i] * ks[i]
113113
end
114-
copyat_or_push!(k, j, k)
114+
copyat_or_push!(k, j, kj)
115115
end
116116
end
117117
nothing

0 commit comments

Comments
 (0)