From: Wolfgang Bangerth Date: Wed, 21 Jun 2017 09:35:44 +0000 (-0600) Subject: Avoid a global communication by using a function that's already there. X-Git-Tag: v9.0.0-rc1~1483^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=492940bcfa555766d584d2e5b84b6a59f410ed0d;p=dealii.git Avoid a global communication by using a function that's already there. --- 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];