15#ifndef dealii_base_mpi_compute_index_owner_internal_h
16#define dealii_base_mpi_compute_index_owner_internal_h
35 namespace ComputeIndexOwner
48 const bool index_range_contiguous,
49 const std::size_t
size);
52 fill(
const std::size_t start,
53 const std::size_t end,
68 std::vector<index_type>
data;
139 std::pair<types::global_dof_index, types::global_dof_index>
197 const unsigned int guess = 0);
219 std::pair<types::global_dof_index, types::global_dof_index>>,
220 std::vector<unsigned int>>
283 std::vector<std::vector<
284 std::pair<
unsigned int,
299 std::map<
unsigned int,
300 std::pair<std::vector<types::global_dof_index>,
301 std::vector<unsigned int>>>
313 const unsigned int other_rank,
316 std::vector<unsigned int> &request_buffer)
override;
322 virtual std::vector<unsigned int>
333 &send_buffer)
override;
341 const std::vector<unsigned int> &recv_buffer)
override;
352 std::map<unsigned int, IndexSet>
372 const unsigned int rank_of_request,
373 const unsigned int rank_of_owner,
374 unsigned int &owner_index_guess);
402 const unsigned int rank_in_owned_indices,
403 const unsigned int guess)
412 rank_in_owned_indices);
const unsigned int my_rank
virtual std::vector< unsigned int > compute_targets() 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) 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
std::vector< unsigned int > & owning_ranks
const IndexSet & indices_to_look_up
std::vector< std::vector< std::pair< unsigned int, std::vector< std::pair< types::global_dof_index, types::global_dof_index > > > > > requesters
std::map< unsigned int, std::pair< std::vector< types::global_dof_index >, std::vector< unsigned int > > > indices_to_look_up_by_dict_rank
const unsigned int n_procs
const IndexSet & owned_indices
std::map< unsigned int, IndexSet > get_requesters()
ConsensusAlgorithmsPayload(const IndexSet &owned_indices, const IndexSet &indices_to_look_up, const MPI_Comm comm, std::vector< unsigned int > &owning_ranks, const bool track_index_requests=false)
void append_index_origin(const types::global_dof_index index_within_dictionary, const unsigned int rank_of_request, const unsigned int rank_of_owner, unsigned int &owner_index_guess)
const bool track_index_requests
index_type & operator[](const std::size_t index)
bool entry_has_been_set(const std::size_t index) const
void reinit(const bool use_vector, const bool index_range_contiguous, const std::size_t size)
FlexibleIndexStorage(const bool use_vector=true)
static const index_type invalid_index_value
void fill(const std::size_t start, const std::size_t end, const index_type &value)
std::map< std::size_t, index_type > data_map
std::vector< index_type > data
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
#define AssertIndexRange(index, range)
static ::ExceptionBase & ExcInternalError()
static const unsigned int invalid_unsigned_int
::VectorizedArray< Number, width > min(const ::VectorizedArray< Number, width > &, const ::VectorizedArray< Number, width > &)
unsigned int global_dof_index
*braid_SplitCommworld & comm
std::vector< unsigned int > actually_owning_rank_list
FlexibleIndexStorage actually_owning_ranks
unsigned int dof_to_dict_rank(const types::global_dof_index i)
types::global_dof_index get_index_offset(const unsigned int rank)
types::global_dof_index locally_owned_size
types::global_dof_index dofs_per_process
unsigned int n_dict_procs_in_owned_indices
static constexpr unsigned int sparsity_factor
unsigned int stride_small_size
static constexpr unsigned int range_minimum_grain_size
std::pair< types::global_dof_index, types::global_dof_index > local_range
void reinit(const IndexSet &owned_indices, const MPI_Comm comm)
void partition(const IndexSet &owned_indices, const MPI_Comm comm)
unsigned int get_owning_rank_index(const unsigned int rank_in_owned_indices, const unsigned int guess=0)
types::global_dof_index size