]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
Pad output file names to a uniform length appropriate for unsigned integers.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 16 Jan 2020 21:22:59 +0000 (14:22 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 16 Jan 2020 22:03:17 +0000 (15:03 -0700)
MCMC-Laplace/mcmc-laplace.cc

index a390ceb471cbf45fda0d878cf3db533e9f04857c..5a6633f4f89ba0efb8e8446e90809e78170a2c95 100644 (file)
@@ -745,7 +745,7 @@ int main()
   MultithreadInfo::set_thread_limit(1);
 
   const unsigned int random_seed  = (testing ? 1U : std::random_device()());
-  const std::string  dataset_name = std::to_string(random_seed);
+  const std::string  dataset_name = Utilities::to_string(random_seed, 10);
 
   const Vector<double> exact_solution(
     {   0.06076511762259369, 0.09601910120848481, 

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.