]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove TimeStepControl::format altogether. 8804/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 19 Sep 2019 13:17:33 +0000 (07:17 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 19 Sep 2019 13:17:33 +0000 (07:17 -0600)
doc/news/changes/incompatibilities/20190918Bangerth
include/deal.II/algorithms/timestep_control.h
source/algorithms/timestep_control.cc

index ed2f4c0a2488b13dfc776457c10823d904df8ff7..d0a78c2c455bd113dd9036c648669453ab85e425 100644 (file)
@@ -1,7 +1,7 @@
-Changed: The type of the argument of the
-Algorithms::TimeStepControl::file_name_format() function that takes a
-string has been changed from `char *` to `std::string`. Similarly, the
-returned type of the function of same name that doesn't take an
-argument has undergone the same kind of change.
+Changed: The 
+Algorithms::TimeStepControl::file_name_format() functions have been
+removed. They were setters and getters for an internal field of that
+class that turned out to be unused anywhere -- in other words, the
+functions had no real functionality.
 <br>
 (Wolfgang Bangerth, 2019/09/18)
index 156df260e486ba7c36c7d75f522037743088f75b..f624cea4a8410ca0689c915dcd0d3a15d906b79c 100644 (file)
@@ -161,18 +161,6 @@ namespace Algorithms
     bool
     print();
 
-    /**
-     * Set the output name template.
-     */
-    void
-    file_name_format(const std::string &format);
-
-    /**
-     * Return the output name template.
-     */
-    const std::string &
-    file_name_format();
-
   private:
     /**
      * The beginning of the time interval.
@@ -231,11 +219,6 @@ namespace Algorithms
      * If current time exceeds this value, it is time to generate the output.
      */
     double next_print_val;
-
-    /**
-     * Output file name template.
-     */
-    std::string format;
   };
 
 
@@ -321,19 +304,6 @@ namespace Algorithms
       next_print_val = now_val - 1.;
   }
 
-
-  inline void
-  TimestepControl::file_name_format(const std::string &fmt)
-  {
-    format = fmt;
-  }
-
-
-  inline const std::string &
-  TimestepControl::file_name_format()
-  {
-    return format;
-  }
 } // namespace Algorithms
 
 DEAL_II_NAMESPACE_CLOSE
index cce4db710b3f20700bfc9c8ae2b4bac694308b21..a0e4670584229f739aaccbbc21882c54222765be 100644 (file)
@@ -38,7 +38,6 @@ TimestepControl::TimestepControl(double start,
   , step_val(start_step)
   , print_step(print_step)
   , next_print_val(print_step > 0. ? start_val + print_step : start_val - 1.)
-  , format("T.%06.3f")
 {
   now_val = start_val;
 

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.