]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix querying time steps in IDA.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 3 Jun 2024 02:55:07 +0000 (20:55 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 11 Jun 2024 03:38:56 +0000 (21:38 -0600)
source/sundials/ida.cc

index e9d137a6294f34f16685db32345f642371c22e2c..1d57fb477f13f62e8b1b5b78c634dc2925dbe751 100644 (file)
@@ -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;
   }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.