From 8bebf442db47ddff0a701255cb0f62ca91ff20ae Mon Sep 17 00:00:00 2001 From: leicht Date: Thu, 14 Dec 2006 08:50:21 +0000 Subject: [PATCH] allow larger integer numbers to be read from a string git-svn-id: https://svn.dealii.org/trunk@14236 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/utilities.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deal.II/base/source/utilities.cc b/deal.II/base/source/utilities.cc index 169b9315de..57fbc12847 100644 --- a/deal.II/base/source/utilities.cc +++ b/deal.II/base/source/utilities.cc @@ -272,7 +272,7 @@ namespace Utilities { // compute the number of // digits of i. assuming it - // is less than 6 is likely + // is less than 8 is likely // ok if (i<10) return std::make_pair (i, 1U); @@ -284,6 +284,10 @@ namespace Utilities return std::make_pair (i, 4U); else if (i<100000) return std::make_pair (i, 5U); + else if (i<1000000) + return std::make_pair (i, 6U); + else if (i<10000000) + return std::make_pair (i, 7U); else { Assert (false, ExcNotImplemented()); -- 2.39.5