Skip to content

Commit

Permalink
Rosenbrock32
Browse files Browse the repository at this point in the history
  • Loading branch information
ParamThakkar123 committed Aug 9, 2024
1 parent 49dff07 commit 98b93b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/OrdinaryDiffEqRosenbrock/src/rosenbrock_perform_step.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,11 @@ end
integrator.stats.nsolve += 1
u = uprev + dt * k₂

if cache isa Rosenbrock32ConstantCache
integrator.fsallast = f(tmp, p, t + dt)
end

if integrator.opts.adaptive
if cache isa Rosenbrock32ConstantCache
integrator.fsallast = f(tmp, p, t + dt)
end
integrator.fsallast = f(u, p, t + dt)
integrator.stats.nf += 1

Expand Down

0 comments on commit 98b93b4

Please sign in to comment.