From 492940bcfa555766d584d2e5b84b6a59f410ed0d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 21 Jun 2017 03:35:44 -0600 Subject: [PATCH] Avoid a global communication by using a function that's already there. --- source/dofs/dof_handler_policy.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index 4cd55706a0..db6e1098c9 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -2277,8 +2277,7 @@ namespace internal // have any cells on that level or if the local part of the // Triangulation has fewer levels. we need to do this because // we need to communicate across all processors on all levels - const unsigned int n_levels = Utilities::MPI::max(dof_handler.get_triangulation().n_levels(), - tr->get_communicator()); + const unsigned int n_levels = tr->n_global_levels(); for (unsigned int level = 0; level < n_levels; ++level) { NumberCache &number_cache = number_caches[level]; -- 2.39.5