From: Daniel Arndt Date: Mon, 27 May 2019 14:49:13 +0000 (-0400) Subject: Check for the numer of global values instead X-Git-Tag: v9.2.0-rc1~1444^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5ff9b4286afc652ca97604b59accae02b3714f4;p=dealii.git Check for the numer of global values instead --- 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());