From: Wolfgang Bangerth Date: Thu, 16 Jan 2020 21:22:59 +0000 (-0700) Subject: Pad output file names to a uniform length appropriate for unsigned integers. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9462ac5348ec4207040ba97f4935697f7ead952d;p=code-gallery.git Pad output file names to a uniform length appropriate for unsigned integers. --- diff --git a/MCMC-Laplace/mcmc-laplace.cc b/MCMC-Laplace/mcmc-laplace.cc index a390ceb..5a6633f 100644 --- a/MCMC-Laplace/mcmc-laplace.cc +++ b/MCMC-Laplace/mcmc-laplace.cc @@ -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 exact_solution( { 0.06076511762259369, 0.09601910120848481,