]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check for the Trilinos version when calling getLocalNumElements. 16159/head
authorSebastian Kinnewig <kinnewig@ifam.uni-hannover.de>
Thu, 19 Oct 2023 08:52:59 +0000 (10:52 +0200)
committerSebastian Kinnewig <kinnewig@ifam.uni-hannover.de>
Thu, 19 Oct 2023 08:52:59 +0000 (10:52 +0200)
source/base/index_set.cc

index 17108ea82a2f55cefa13884e36d9021d745090b5..5dd4b6d251f90374ef4231ee0d32d439c502d6ab 100644 (file)
@@ -57,7 +57,11 @@ IndexSet::IndexSet(
               size_type(map->getMaxGlobalIndex() + 1));
   else
     {
+#    if DEAL_II_TRILINOS_VERSION_GTE(13, 4, 0)
       const size_type n_indices = map->getLocalNumElements();
+#    else
+      const size_type n_indices = map->getNodeNumElements();
+#    endif
       const types::signed_global_dof_index *indices =
         map->getMyGlobalIndices().data();
       add_indices(indices, indices + n_indices);

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.