]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove obsolete global communication from MGTransfer 8792/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 18 Sep 2019 20:50:12 +0000 (22:50 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 18 Sep 2019 20:50:12 +0000 (22:50 +0200)
source/multigrid/mg_transfer_internal.cc

index 2bab12fc32a1604e93a64e667ed32fe1880214df..8366291d47f09739590f4a72392a246a4db1b0ae 100644 (file)
@@ -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<std::vector<IndexSet>>
-            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<types::subdomain_id> &neighbors =
             tria->level_ghost_owners();
           std::map<int, std::vector<DoFPair>> send_data;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.