Reference documentation for deal.II version 9.2.0
|
#include <deal.II/base/mpi_consensus_algorithms.h>
Public Member Functions | |
Selector (Process< T1, T2 > &process, const MPI_Comm &comm) | |
virtual | ~Selector ()=default |
virtual void | run () override |
Public Member Functions inherited from Utilities::MPI::ConsensusAlgorithms::Interface< T1, T2 > | |
Interface (Process< T1, T2 > &process, const MPI_Comm &comm) | |
virtual | ~Interface ()=default |
Private Attributes | |
std::shared_ptr< Interface< T1, T2 > > | consensus_algo |
Additional Inherited Members | |
Protected Attributes inherited from Utilities::MPI::ConsensusAlgorithms::Interface< T1, T2 > | |
Process< T1, T2 > & | process |
const MPI_Comm & | comm |
const unsigned int | my_rank |
const unsigned int | n_procs |
A class which delegates its task to other ConsensusAlgorithms::Interface implementations depending on the number of processes in the MPI communicator. For a small number of processes it uses PEX and for a large number of processes NBX. The threshold depends if the program is compiled in debug or release mode.
T1 | The type of the elements of the vector to be sent. |
T2 | The type of the elements of the vector to be received. |
Definition at line 464 of file mpi_consensus_algorithms.h.
Utilities::MPI::ConsensusAlgorithms::Selector< T1, T2 >::Selector | ( | Process< T1, T2 > & | process, |
const MPI_Comm & | comm | ||
) |
|
virtualdefault |
Destructor.
|
overridevirtual |
Run consensus algorithm.
Implements Utilities::MPI::ConsensusAlgorithms::Interface< T1, T2 >.
|
private |
Definition at line 490 of file mpi_consensus_algorithms.h.