From: Martin Kronbichler Date: Wed, 18 Sep 2019 20:50:12 +0000 (+0200) Subject: Remove obsolete global communication from MGTransfer X-Git-Tag: v9.2.0-rc1~1082^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c6ea6ce595109a2adbcfafc44bf6548851f2511;p=dealii.git Remove obsolete global communication from MGTransfer --- 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;