]> https://gitweb.dealii.org/ - dealii.git/commitdiff
replace other NumGlobalElements call 8378/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 11 Jul 2019 19:34:00 +0000 (15:34 -0400)
committerTimo Heister <timo.heister@gmail.com>
Thu, 11 Jul 2019 19:34:00 +0000 (15:34 -0400)
include/deal.II/lac/trilinos_sparse_matrix.h

index 26c8467dfc3d183272853b30cefae5ddb7d2781a..33732d99ce5ece30cdb119155d90191d6b09f3a9 100644 (file)
@@ -27,6 +27,7 @@
 #    include <deal.II/lac/exceptions.h>
 #    include <deal.II/lac/full_matrix.h>
 #    include <deal.II/lac/trilinos_epetra_vector.h>
+#    include <deal.II/lac/trilinos_index_access.h>
 #    include <deal.II/lac/trilinos_tpetra_vector.h>
 #    include <deal.II/lac/trilinos_vector.h>
 #    include <deal.II/lac/vector_memory.h>
@@ -3132,11 +3133,7 @@ namespace TrilinosWrappers
     // sparsity pattern), it does not know about the number of columns so we
     // must always take this from the additional column space map
     Assert(column_space_map.get() != nullptr, ExcInternalError());
-#      ifndef DEAL_II_WITH_64BIT_INDICES
-    return column_space_map->NumGlobalElements();
-#      else
-    return column_space_map->NumGlobalElements64();
-#      endif
+    return n_global_elements(*column_space_map);
   }
 
 

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.