From 16bdaf0101816a7cb5312d99b04721b49e587353 Mon Sep 17 00:00:00 2001 From: Daniel Doehring Date: Tue, 18 Jun 2024 09:08:42 +0200 Subject: [PATCH] Do not set finalstep false in PERK2 step! (#1983) --- .../paired_explicit_runge_kutta/methods_PERK2.jl | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/time_integration/paired_explicit_runge_kutta/methods_PERK2.jl b/src/time_integration/paired_explicit_runge_kutta/methods_PERK2.jl index 1d9680153e6..8a5c2a24617 100644 --- a/src/time_integration/paired_explicit_runge_kutta/methods_PERK2.jl +++ b/src/time_integration/paired_explicit_runge_kutta/methods_PERK2.jl @@ -296,8 +296,6 @@ function step!(integrator::PairedExplicitRK2Integrator) t_end = last(prob.tspan) callbacks = integrator.opts.callback - integrator.finalstep = false - @assert !integrator.finalstep if isnan(integrator.dt) error("time step size `dt` is NaN")