16#ifndef dealii_base_mpi_compute_index_owner_internal_h
17#define dealii_base_mpi_compute_index_owner_internal_h
36 namespace ComputeIndexOwner
49 const bool index_range_contiguous,
50 const std::size_t
size);
53 fill(
const std::size_t start,
54 const std::size_t end,
69 std::vector<index_type>
data;
140 std::pair<types::global_dof_index, types::global_dof_index>
198 const unsigned int guess = 0);
220 std::pair<types::global_dof_index, types::global_dof_index>>,
221 std::vector<unsigned int>>
283 std::vector<std::vector<
284 std::pair<
unsigned int,
285 std::vector<std::pair<unsigned int, unsigned int>>>>>
298 std::map<
unsigned int,
299 std::pair<std::vector<types::global_dof_index>,
300 std::vector<unsigned int>>>
312 const unsigned int other_rank,
315 std::vector<unsigned int> &request_buffer)
override;
321 virtual std::vector<unsigned int>
332 &send_buffer)
override;
340 const std::vector<unsigned int> &recv_buffer)
override;
351 std::map<unsigned int, IndexSet>
370 const unsigned int rank_of_request,
371 const unsigned int rank_of_owner,
372 unsigned int & owner_index_guess);
400 const unsigned int rank_in_owned_indices,
401 const unsigned int guess)
410 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< std::vector< std::pair< unsigned int, std::vector< std::pair< unsigned int, unsigned int > > > > > requesters
std::vector< unsigned int > & owning_ranks
const IndexSet & indices_to_look_up
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()
void append_index_origin(const unsigned int 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)
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 > &)
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