]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use correct construct to generate an Epetra_Map.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 12:44:52 +0000 (12:44 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 12:44:52 +0000 (12:44 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29065 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/index_set.cc

index 367966a7444c653efe2c57a480b3cec101050db7..cbaf3375365729524811e0c005d6c38b027f3767 100644 (file)
@@ -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<int>(size()),
-                       static_cast<int>(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<types::global_dof_index> indices;
       fill_index_vector(indices);
 
-      return Epetra_Map (-1,
-                         static_cast<int>(n_elements()),
+      return Epetra_Map (TrilinosWrappers::types::int_type(-1),
+                         TrilinosWrappers::types::int_type(n_elements()),
                          (n_elements() > 0
                           ?
                           reinterpret_cast<int *>(&indices[0])

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.