From 9c6ea6ce595109a2adbcfafc44bf6548851f2511 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 18 Sep 2019 22:50:12 +0200 Subject: [PATCH] Remove obsolete global communication from MGTransfer --- source/multigrid/mg_transfer_internal.cc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/source/multigrid/mg_transfer_internal.cc b/source/multigrid/mg_transfer_internal.cc index 2bab12fc32..8366291d47 100644 --- a/source/multigrid/mg_transfer_internal.cc +++ b/source/multigrid/mg_transfer_internal.cc @@ -180,17 +180,6 @@ namespace internal #ifdef DEAL_II_WITH_MPI if (tria) { - // TODO: Searching the owner for every single DoF becomes quite - // inefficient. Please fix this, Timo. - // The list of neighbors is symmetric (our neighbors have us as a - // neighbor), so we can use it to send and to know how many messages - // we will get. - std::vector> - locally_owned_mg_dofs_per_processor; - for (unsigned int l = 0; l < tria->n_global_levels(); ++l) - locally_owned_mg_dofs_per_processor.push_back( - mg_dof.compute_locally_owned_mg_dofs_per_processor(l)); - const std::set &neighbors = tria->level_ghost_owners(); std::map> send_data; -- 2.39.5