From 5b740273ab65f3c42fe7d199676ab4d5f28beb2c Mon Sep 17 00:00:00 2001 From: nefrathenrici Date: Wed, 20 Mar 2024 12:05:43 -0700 Subject: [PATCH] fix n_steps_total --- src/callbacks/callbacks.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callbacks/callbacks.jl b/src/callbacks/callbacks.jl index be8611144b3..b295aa00e7b 100644 --- a/src/callbacks/callbacks.jl +++ b/src/callbacks/callbacks.jl @@ -259,7 +259,7 @@ function print_walltime_estimate(integrator) if wte.n_calls == wte.n_next && ready_to_report t = integrator.t - n_steps_total = ceil(Int, t_end / dt) + n_steps_total = ceil(Int, (t_end - t_start) / dt) n_steps = ceil(Int, (t - t_start) / dt) wall_time_ave_per_step = wte.∑Δt_wall / n_steps wall_time_ave_per_step_str = time_and_units_str(wall_time_ave_per_step)