Reference documentation for deal.II version 9.4.1
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Utilities::MPI::internal::ComputeIndexOwner::DictionaryPayLoad Class Reference

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

Inheritance diagram for Utilities::MPI::internal::ComputeIndexOwner::DictionaryPayLoad:
[legend]

Public Member Functions

 DictionaryPayLoad (const std::map< unsigned int, std::vector< std::pair< types::global_dof_index, types::global_dof_index > > > &buffers, FlexibleIndexStorage &actually_owning_ranks, const std::pair< types::global_dof_index, types::global_dof_index > &local_range, std::vector< unsigned int > &actually_owning_rank_list)
 
virtual std::vector< unsigned intcompute_targets () override
 
virtual void create_request (const unsigned int other_rank, std::vector< std::pair< types::global_dof_index, types::global_dof_index > > &send_buffer) override
 
virtual void answer_request (const unsigned int other_rank, const std::vector< std::pair< types::global_dof_index, types::global_dof_index > > &buffer_recv, std::vector< unsigned int > &request_buffer) override
 
virtual void read_answer (const unsigned int other_rank, const std::vector< unsigned int > &recv_buffer)
 

Private Attributes

const std::map< unsigned int, std::vector< std::pair< types::global_dof_index, types::global_dof_index > > > & buffers
 
FlexibleIndexStorageactually_owning_ranks
 
const std::pair< types::global_dof_index, types::global_dof_index > & local_range
 
std::vector< unsigned int > & actually_owning_rank_list
 

Detailed Description

Specialization of ConsensusAlgorithms::Process for setting up the Dictionary even if there are ranges in the IndexSet space not owned by any processes.

Note
Only for internal usage.

Definition at line 80 of file mpi_compute_index_owner_internal.h.

Constructor & Destructor Documentation

◆ DictionaryPayLoad()

Utilities::MPI::internal::ComputeIndexOwner::DictionaryPayLoad::DictionaryPayLoad ( const std::map< unsigned int, std::vector< std::pair< types::global_dof_index, types::global_dof_index > > > &  buffers,
FlexibleIndexStorage actually_owning_ranks,
const std::pair< types::global_dof_index, types::global_dof_index > &  local_range,
std::vector< unsigned int > &  actually_owning_rank_list 
)

Constructor.

Definition at line 167 of file mpi_compute_index_owner_internal.cc.

Member Function Documentation

◆ compute_targets()

std::vector< unsigned int > Utilities::MPI::internal::ComputeIndexOwner::DictionaryPayLoad::compute_targets ( )
overridevirtual

◆ create_request()

void Utilities::MPI::internal::ComputeIndexOwner::DictionaryPayLoad::create_request ( const unsigned int  other_rank,
std::vector< std::pair< types::global_dof_index, types::global_dof_index > > &  send_buffer 
)
overridevirtual

◆ answer_request()

void Utilities::MPI::internal::ComputeIndexOwner::DictionaryPayLoad::answer_request ( const unsigned int  other_rank,
const std::vector< std::pair< types::global_dof_index, types::global_dof_index > > &  buffer_recv,
std::vector< unsigned int > &  request_buffer 
)
overridevirtual

◆ read_answer()

virtual void Utilities::MPI::ConsensusAlgorithms::Process< std::vector< std::pair< types::global_dof_index, types::global_dof_index > > , std::vector< unsigned int > >::read_answer ( const unsigned int  other_rank,
const std::vector< unsigned int > &  recv_buffer 
)
virtualinherited

Process the payload of the answer of the request to the process with the specified rank.

Parameters
[in]other_rankrank of the process
[in]recv_bufferdata to be sent part of the request (optional)

Reimplemented in Utilities::MPI::internal::ComputeIndexOwner::ConsensusAlgorithmsPayload.

Member Data Documentation

◆ buffers

const std::map<unsigned int, std::vector<std::pair<types::global_dof_index, types::global_dof_index> > >& Utilities::MPI::internal::ComputeIndexOwner::DictionaryPayLoad::buffers
private

Definition at line 132 of file mpi_compute_index_owner_internal.h.

◆ actually_owning_ranks

FlexibleIndexStorage& Utilities::MPI::internal::ComputeIndexOwner::DictionaryPayLoad::actually_owning_ranks
private

Definition at line 134 of file mpi_compute_index_owner_internal.h.

◆ local_range

const std::pair<types::global_dof_index, types::global_dof_index>& Utilities::MPI::internal::ComputeIndexOwner::DictionaryPayLoad::local_range
private

Definition at line 137 of file mpi_compute_index_owner_internal.h.

◆ actually_owning_rank_list

std::vector<unsigned int>& Utilities::MPI::internal::ComputeIndexOwner::DictionaryPayLoad::actually_owning_rank_list
private

Definition at line 139 of file mpi_compute_index_owner_internal.h.


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