From 5144cd843ed187529ababe13a4818281030c8ea6 Mon Sep 17 00:00:00 2001 From: Sebastian Kinnewig Date: Thu, 19 Oct 2023 10:52:59 +0200 Subject: [PATCH] Check for the Trilinos version when calling getLocalNumElements. --- source/base/index_set.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/base/index_set.cc b/source/base/index_set.cc index 17108ea82a..5dd4b6d251 100644 --- a/source/base/index_set.cc +++ b/source/base/index_set.cc @@ -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); -- 2.39.5