From: Martin Kronbichler Date: Wed, 13 Nov 2019 13:15:54 +0000 (+0100) Subject: Merge pull request #9010 from tjhei/central_mpi_tags X-Git-Tag: v9.2.0-rc1~879 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c472e75895a7a2298f1df178a84897b303aae17;p=dealii.git Merge pull request #9010 from tjhei/central_mpi_tags use global list of MPI tags for collective communication --- 2c472e75895a7a2298f1df178a84897b303aae17 diff --cc source/base/mpi.cc index 40d231bc00,2b787c80e6..d86500e48a --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@@ -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 - 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();