Skip to content

Commit 10715d7

Browse files
Merge pull request #2628 from SciML/ranocha-patch-2
fix stats.nf for KYKSSPRK42
2 parents bef4174 + ba8fe7c commit 10715d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/OrdinaryDiffEqSSPRK/src/ssprk_perform_step.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ end
8282
stage_limiter!(u, integrator, p, t + dt)
8383
step_limiter!(u, integrator, p, t + dt)
8484
f(k, u, p, t + dt)
85+
OrdinaryDiffEqCore.increment_nf!(integrator.stats, 4)
8586
end
8687

8788
function initialize!(integrator, cache::KYKSSPRK42ConstantCache)
@@ -113,6 +114,7 @@ end
113114

114115
integrator.fsallast = f(u, p, t + dt) # For interpolation, then FSAL'd
115116
integrator.k[1] = integrator.fsalfirst
117+
OrdinaryDiffEqCore.increment_nf!(integrator.stats, 4)
116118
integrator.u = u
117119
end
118120

0 commit comments

Comments
 (0)