From: Wolfgang Bangerth Date: Mon, 3 Jun 2024 02:39:23 +0000 (-0600) Subject: Fix querying time steps in ARKODE. X-Git-Tag: v9.6.0-rc1~195^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b815d8b03a033f0f41dd107dd8b12f3a7543320;p=dealii.git Fix querying time steps in ARKODE. --- 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; }