From 43c20300e58ebc5582b0d1105b515d1ac8a78763 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Fri, 11 Jul 2014 17:06:38 +0000 Subject: [PATCH] Fix a bug when using 64bit indices. git-svn-id: https://svn.dealii.org/trunk@33137 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/trilinos_sparsity_pattern.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5