Reference documentation for deal.II version 9.5.0
|
#include <deal.II/base/mpi_consensus_algorithms.h>
Public Member Functions | |
Serial ()=default | |
Serial (Process< RequestType, AnswerType > &process, const MPI_Comm comm) | |
virtual std::vector< unsigned int > | run (const std::vector< unsigned int > &targets, const std::function< RequestType(const unsigned int)> &create_request, const std::function< AnswerType(const unsigned int, const RequestType &)> &answer_request, const std::function< void(const unsigned int, const AnswerType &)> &process_answer, const MPI_Comm comm) override |
std::vector< unsigned int > | run () |
std::vector< unsigned int > | run (Process< RequestType, AnswerType > &process, const MPI_Comm comm) |
Private Attributes | |
Process< RequestType, AnswerType > * | process |
MPI_Comm | comm |
A serial fall back for the above classes to allow programming independently of whether MPI is used or not.
Definition at line 858 of file mpi_consensus_algorithms.h.
|
default |
Default constructor.
Utilities::MPI::ConsensusAlgorithms::Serial< RequestType, AnswerType >::Serial | ( | Process< RequestType, AnswerType > & | process, |
const MPI_Comm | comm | ||
) |
Constructor.
|
overridevirtual |
Run the consensus algorithm and return a vector of process ranks that have requested answers from the current process.
Implements Utilities::MPI::ConsensusAlgorithms::Interface< RequestType, AnswerType >.
|
inherited |
Run the consensus algorithm and return a vector of process ranks that have requested answers from the current process.
|
inherited |
|
privateinherited |
Reference to the process provided by the user.
This member variable is only used in the deprecated constructor and the run() function without argument. It is a nullptr
otherwise
Definition at line 330 of file mpi_consensus_algorithms.h.
|
privateinherited |
MPI communicator.
This member variable is only used in the deprecated constructor and the run() function without argument.
Definition at line 339 of file mpi_consensus_algorithms.h.