From: bangerth Date: Wed, 27 Mar 2013 12:44:52 +0000 (+0000) Subject: Use correct construct to generate an Epetra_Map. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19fe8eaf7710a227d8873094e4ce5952abad30ff;p=dealii-svn.git Use correct construct to generate an Epetra_Map. git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29065 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/index_set.cc b/deal.II/source/base/index_set.cc index 367966a744..cbaf337536 100644 --- a/deal.II/source/base/index_set.cc +++ b/deal.II/source/base/index_set.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006, 2008, 2009, 2010, 2011, 2012 by the deal.II authors +// Copyright (C) 2005, 2006, 2008, 2009, 2010, 2011, 2012, 2013 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -383,8 +383,8 @@ IndexSet::make_trilinos_map (const MPI_Comm &communicator, compress (); if ((is_contiguous() == true) && (!overlapping)) - return Epetra_Map (static_cast(size()), - static_cast(n_elements()), + return Epetra_Map (TrilinosWrappers::types::int_type(size()), + TrilinosWrappers::types::int_type(n_elements()), 0, #ifdef DEAL_II_WITH_MPI Epetra_MpiComm(communicator)); @@ -396,8 +396,8 @@ IndexSet::make_trilinos_map (const MPI_Comm &communicator, std::vector indices; fill_index_vector(indices); - return Epetra_Map (-1, - static_cast(n_elements()), + return Epetra_Map (TrilinosWrappers::types::int_type(-1), + TrilinosWrappers::types::int_type(n_elements()), (n_elements() > 0 ? reinterpret_cast(&indices[0])