From f7888fd485b46e0c581d1274e95656ac5cebbfa5 Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 7 Apr 2013 16:31:52 +0000 Subject: [PATCH] Avoid the use of an undefined preprocessor variable. 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deal.II/include/deal.II/base/partitioner.h b/deal.II/include/deal.II/base/partitioner.h index 777b7a71a5..353ac2d5ac 100644 --- a/deal.II/include/deal.II/base/partitioner.h +++ b/deal.II/include/deal.II/base/partitioner.h @@ -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::max(), + ExcNotImplemented()); return static_cast(size); } -- 2.39.5