From: Wolfgang Bangerth Date: Mon, 3 Jun 2024 02:55:07 +0000 (-0600) Subject: Fix querying time steps in IDA. X-Git-Tag: v9.6.0-rc1~195^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25c1e2afeac2c107f5b179ec68214c4c68a00fa4;p=dealii.git Fix querying time steps in IDA. --- diff --git a/source/sundials/ida.cc b/source/sundials/ida.cc index e9d137a629..1d57fb477f 100644 --- a/source/sundials/ida.cc +++ b/source/sundials/ida.cc @@ -177,8 +177,10 @@ namespace SUNDIALS output_step(t, solution, solution_dot, step_number); } - - return step_number; + long int n_steps; + status = IDAGetNumSteps(ida_mem, &n_steps); + AssertIDA(status); + return n_steps; }