]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
allow larger integer numbers to be read from a string
authorleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 14 Dec 2006 08:50:21 +0000 (08:50 +0000)
committerleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 14 Dec 2006 08:50:21 +0000 (08:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@14236 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/utilities.cc

index 169b9315de0a3f9da34c521c8cf2c7c716e1a49c..57fbc12847be6eb4425fb044b6578b18e3602e47 100644 (file)
@@ -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());

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.