]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor updates to ARKode in-code commentary. 13442/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 24 Feb 2022 04:30:37 +0000 (21:30 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 24 Feb 2022 04:30:37 +0000 (21:30 -0700)
source/sundials/arkode.cc

index 5118490a36d91e423b0db82c58b5879b95e859e2..c68e57abd7d3cb92fcf1ee860edd315cd4607129 100644 (file)
@@ -448,6 +448,8 @@ namespace SUNDIALS
     while (!time.is_at_end())
       {
         time.set_desired_next_step_size(data.output_period);
+
+        // Let ARKode advance time by one period:
         double actual_next_time;
 #  if DEAL_II_SUNDIALS_VERSION_LT(4, 0, 0)
         const auto status = SundialsARKode(arkode_mem,
@@ -465,9 +467,12 @@ namespace SUNDIALS
         (void)status;
         AssertARKode(status);
 
+        // Then reflect this time advancement in our own DiscreteTime object:
         time.set_next_step_size(actual_next_time - time.get_current_time());
         time.advance_time();
 
+        // Finally check whether resets or output calls are desired at this
+        // time:
         while (solver_should_restart(time.get_current_time(), solution))
           reset(time.get_current_time(),
                 time.get_previous_step_size(),

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.