]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check for the numer of global values instead 8277/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 27 May 2019 14:49:13 +0000 (10:49 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 27 May 2019 14:58:13 +0000 (10:58 -0400)
source/lac/trilinos_sparsity_pattern.cc

index c4482795050d74cdd0d6c0b1df9ef15eb96b41e5..28e0b2529fb2bc806ddbac4e5a572aa85e5674fa 100644 (file)
@@ -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());
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.