From 25c1e2afeac2c107f5b179ec68214c4c68a00fa4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 2 Jun 2024 20:55:07 -0600 Subject: [PATCH] Fix querying time steps in IDA. --- source/sundials/ida.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.5