]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #9010 from tjhei/central_mpi_tags
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 13 Nov 2019 13:15:54 +0000 (14:15 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Nov 2019 13:15:54 +0000 (14:15 +0100)
use global list of MPI tags for collective communication

1  2 
include/deal.II/base/mpi.h
include/deal.II/base/mpi_compute_index_owner_internal.h
source/base/mpi.cc
source/distributed/tria_base.cc
source/multigrid/mg_transfer_internal.cc

Simple merge
index 40d231bc006acd7a3a12aa2c6117ae49778c37bc,2b787c80e6e6fe181c6939db2588d732ab697707..d86500e48ab8bad6e06f260f678693c4eee7fc78
@@@ -1366,9 -1375,27 +1386,14 @@@ namespace Utilitie
        // 1) determine with which processes this process wants to communicate
        targets = this->process.compute_targets();
  
+       const int tag_request =
+         Utilities::MPI::internal::Tags::consensus_algorithm_pex_process_request;
+       const int tag_deliver =
+         Utilities::MPI::internal::Tags::consensus_algorithm_pex_process_deliver;
        // 2) determine who wants to communicate with this process
 -      const bool use_nbx = false;
 -      if (!use_nbx)
 -        {
 -          sources =
 -            compute_point_to_point_communication_pattern(this->comm, targets);
 -        }
 -      else
 -        {
 -          ConsensusAlgorithmProcessTargets process(targets);
 -          ConsensusAlgorithm_NBX<ConsensusAlgorithmProcessTargets::T1,
 -                                 ConsensusAlgorithmProcessTargets::T2>
 -            consensus_algorithm(process, this->comm);
 -          consensus_algorithm.run();
 -          sources = process.get_result();
 -        }
 +      sources =
 +        compute_point_to_point_communication_pattern(this->comm, targets);
  
        const auto n_targets = targets.size();
        const auto n_sources = sources.size();
Simple merge

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.