diff --git a/moment_kinetics/src/time_advance.jl b/moment_kinetics/src/time_advance.jl index 881a8eea3..a810a16a5 100644 --- a/moment_kinetics/src/time_advance.jl +++ b/moment_kinetics/src/time_advance.jl @@ -1921,6 +1921,7 @@ function time_advance!(pdf, scratch, scratch_implicit, scratch_electron, t_para # Stop cleanly if a file called 'stop' was created println("Found 'stopnow' file $(t_params.stopfile * "now"), aborting run") finish_now = true + t_params.dt_before_output[] = t_params.dt[] end if t_params.adaptive && !t_params.write_after_fixed_step_count