From: Bruno Turcksin Date: Fri, 11 Jul 2014 17:06:38 +0000 (+0000) Subject: Fix a bug when using 64bit indices. X-Git-Tag: v8.2.0-rc1~316 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43c20300e58ebc5582b0d1105b515d1ac8a78763;p=dealii.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,