Reference documentation for deal.II version Git ae22ce0c2c 2019-12-09 21:30:56 -0700
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
Public Member Functions | Protected Attributes | List of all members
Utilities::MPI::ConsensusAlgorithm< T1, T2 > Class Template Referenceabstract

#include <deal.II/base/mpi.h>

Inheritance diagram for Utilities::MPI::ConsensusAlgorithm< T1, T2 >:
[legend]

Public Member Functions

virtual ~ConsensusAlgorithm ()=default
 
virtual void run ()=0
 

Protected Attributes

ConsensusAlgorithmProcess< T1, T2 > & process
 
const MPI_Comm & comm
 
const unsigned int my_rank
 
const unsigned int n_procs
 

Detailed Description

template<typename T1, typename T2>
class Utilities::MPI::ConsensusAlgorithm< T1, T2 >

The task of the implementations of this class is to provide the communication patterns to retrieve data from other processes in a dynamic-sparse way.

Dynamic-sparse means in this context:

Naturally, the user has to provide:

The latter two features should be implemented in a class derived from ConsensusAlgorithmProcess.

Template Parameters
T1the type of the elements of the vector to sent
T2the type of the elements of the vector to received
Author
Peter Munch, 2019

Definition at line 1064 of file mpi.h.

Constructor & Destructor Documentation

◆ ~ConsensusAlgorithm()

template<typename T1 , typename T2 >
virtual Utilities::MPI::ConsensusAlgorithm< T1, T2 >::~ConsensusAlgorithm ( )
virtualdefault

Destructor.

Member Function Documentation

◆ run()

template<typename T1 , typename T2 >
virtual void Utilities::MPI::ConsensusAlgorithm< T1, T2 >::run ( )
pure virtual

Member Data Documentation

◆ process

template<typename T1 , typename T2 >
ConsensusAlgorithmProcess<T1, T2>& Utilities::MPI::ConsensusAlgorithm< T1, T2 >::process
protected

Reference to the process provided by the user.

Definition at line 1085 of file mpi.h.

◆ comm

template<typename T1 , typename T2 >
const MPI_Comm& Utilities::MPI::ConsensusAlgorithm< T1, T2 >::comm
protected

MPI communicator.

Definition at line 1090 of file mpi.h.

◆ my_rank

template<typename T1 , typename T2 >
const unsigned int Utilities::MPI::ConsensusAlgorithm< T1, T2 >::my_rank
protected

Rank of this process.

Definition at line 1095 of file mpi.h.

◆ n_procs

template<typename T1 , typename T2 >
const unsigned int Utilities::MPI::ConsensusAlgorithm< T1, T2 >::n_procs
protected

Number of processes in the communicator.

Definition at line 1100 of file mpi.h.


The documentation for this class was generated from the following files: