From 7ceceb32b282378736bcc60056a1791826ca70b0 Mon Sep 17 00:00:00 2001 From: Daniel Doehring Date: Mon, 17 Jun 2024 08:51:22 +0200 Subject: [PATCH] Do not set finalstep false in PERK2 step! --- .../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")