From: bangerth Date: Tue, 26 Mar 2013 00:06:21 +0000 (+0000) Subject: Use correct Trilinos function to avoid an exception being thrown. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab30f927432469e0ecd102055a44075bdc14393f;p=dealii-svn.git Use correct Trilinos function to avoid an exception being thrown. git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29032 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/trilinos_vector.cc b/deal.II/source/lac/trilinos_vector.cc index 807e73630f..be2e9666cb 100644 --- a/deal.II/source/lac/trilinos_vector.cc +++ b/deal.II/source/lac/trilinos_vector.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2008, 2009, 2012 by the deal.II authors +// Copyright (C) 2008, 2009, 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 @@ -234,7 +234,7 @@ namespace TrilinosWrappers std::vector global_ids (n_elements, -1); for (size_type block=0; blockMap().NumGlobalElements(), +#ifndef DEAL_II_USE_LARGE_INDEX_TYPE + const int n_global_elements + = v.vector->Map().NumGlobalElements(); +#else + const long long int n_global_elements + = v.vector->Map().NumGlobalElements64(); +#endif + Epetra_LocalMap map (n_global_elements, v.vector->Map().IndexBase(), v.vector->Comm()); vector.reset (new Epetra_FEVector(map));