![]() |
deal.II version 9.7.0
|
#include <deal.II/base/mpi_consensus_algorithms.h>
A serial fall back for the above classes to allow programming independently of whether MPI is used or not.
Definition at line 789 of file mpi_consensus_algorithms.h.

Public Member Functions | |
| Serial ()=default | |
| 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 (Process< RequestType, AnswerType > &process, const MPI_Comm comm) |
|
default |
Default constructor.
|
overridevirtual |
Run the consensus algorithm and return a vector of process ranks that have requested answers from the current process.
This version of the run() function simply unpacks the functions packaged in process and calls the version of the run() function that takes a number of std::function arguments.
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.
This version of the run() function simply unpacks the functions packaged in process and calls the version of the run() function that takes a number of std::function arguments.