From: turcksin Date: Fri, 11 Jul 2014 17:06:38 +0000 (+0000) Subject: Fix a bug when using 64bit indices. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ba0b1c6ad0a5e40e1b0188691621baefaa04b32;p=dealii-svn.git Fix a bug when using 64bit indices. git-svn-id: https://svn.dealii.org/trunk@33137 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/trilinos_sparsity_pattern.cc b/deal.II/source/lac/trilinos_sparsity_pattern.cc index a9991e2666..66b274e1a2 100644 --- a/deal.II/source/lac/trilinos_sparsity_pattern.cc +++ b/deal.II/source/lac/trilinos_sparsity_pattern.cc @@ -712,7 +712,8 @@ namespace TrilinosWrappers nonlocal_graph->RowMap().NumMyElements() > 0) { // insert dummy element - TrilinosWrappers::types::int_type row = nonlocal_graph->RowMap().MyGID(0); + TrilinosWrappers::types::int_type row = nonlocal_graph->RowMap().MyGID( + static_cast (0)); nonlocal_graph->InsertGlobalIndices(row, 1, &row); } Assert(nonlocal_graph->IndicesAreGlobal() == true,