]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid the use of an undefined preprocessor variable.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 7 Apr 2013 16:31:52 +0000 (16:31 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 7 Apr 2013 16:31:52 +0000 (16:31 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29210 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/partitioner.h

index 777b7a71a5502d305e1afe001ab3de2e5eb36ab8..353ac2d5acd11c524fecd1cb1abdecc7f750ad3d 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2011, 2012 by deal.II authors
+//    Copyright (C) 2011, 2012, 2013 by deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -284,7 +284,7 @@ namespace Utilities
        * Exception
        */
       DeclException2 (ExcIndexNotPresent,
-                      types::global_dof_index, 
+                      types::global_dof_index,
                      unsigned int,
                       << "Global index " << arg1
                       << " neither owned nor ghost on proc " << arg2);
@@ -407,7 +407,8 @@ namespace Utilities
     Partitioner::local_size () const
     {
       types::global_dof_index size= local_range_data.second - local_range_data.first;
-      Assert(size<=UINT32_MAX, ExcNotImplemented());
+      Assert(size<=std::numeric_limits<unsigned int>::max(),
+            ExcNotImplemented());
       return static_cast<unsigned int>(size);
     }
 

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.