Skip to content

Commit 39d7647

Browse files
Harsh SinghHarsh Singh
authored andcommitted
fix: use uprev for stage-1 f eval in OOP addsteps (RosenbrockCombinedConstantCache)
1 parent 1e70c8b commit 39d7647

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/OrdinaryDiffEqRosenbrock/src/stiff_addsteps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function _ode_addsteps!(
3737
end
3838

3939
num_stages = size(A, 1)
40-
du = f(u, p, t)
40+
du = f(uprev, p, t)
4141
linsolve_tmp = @.. du + dtd[1] * dT
4242
k1 = _reshape(W \ _vec(linsolve_tmp), axes(uprev))
4343
# constant number for type stability make sure this is greater than num_stages

0 commit comments

Comments
 (0)