From 6b815d8b03a033f0f41dd107dd8b12f3a7543320 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 2 Jun 2024 20:39:23 -0600 Subject: [PATCH] Fix querying time steps in ARKODE. --- source/sundials/arkode.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/sundials/arkode.cc b/source/sundials/arkode.cc index c899099a71..1b47776c16 100644 --- a/source/sundials/arkode.cc +++ b/source/sundials/arkode.cc @@ -231,7 +231,13 @@ namespace SUNDIALS time.get_step_number()); } last_end_time = time.get_current_time(); - return time.get_step_number(); + + long int n_steps; + const auto status = ARKStepGetNumSteps(arkode_mem, &n_steps); + (void)status; + AssertARKode(status); + + return n_steps; } -- 2.39.5