From c5ff9b4286afc652ca97604b59accae02b3714f4 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 27 May 2019 10:49:13 -0400 Subject: [PATCH] Check for the numer of global values instead --- source/lac/trilinos_sparsity_pattern.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lac/trilinos_sparsity_pattern.cc b/source/lac/trilinos_sparsity_pattern.cc index c448279505..28e0b2529f 100644 --- a/source/lac/trilinos_sparsity_pattern.cc +++ b/source/lac/trilinos_sparsity_pattern.cc @@ -792,7 +792,7 @@ namespace TrilinosWrappers { if (nonlocal_graph->IndicesAreGlobal() == false && nonlocal_graph->RowMap().NumMyElements() > 0 && - column_space_map->NumMyElements() > 0) + column_space_map->NumGlobalElements() > 0) { // Insert dummy element at (row, column) that corresponds to row 0 // in local index counting. @@ -814,7 +814,7 @@ namespace TrilinosWrappers AssertThrow(ierr == 0, ExcTrilinosError(ierr)); } Assert(nonlocal_graph->RowMap().NumMyElements() == 0 || - column_space_map->NumMyElements() == 0 || + column_space_map->NumGlobalElements() == 0 || nonlocal_graph->IndicesAreGlobal() == true, ExcInternalError()); -- 2.39.5