* @note The buffer is empty. Before using it, you have to set its size.
*/
virtual void
- create_request(const int other_rank, std::vector<T1> &send_buffer);
+ create_request(const unsigned int other_rank,
+ std::vector<T1> & send_buffer);
/**
* Prepare the buffer where the payload of the answer of the request to
* @param[out] recv_buffer data to be sent part of the request (optional)
*/
virtual void
- prepare_buffer_for_answer(const int other_rank,
- std::vector<T2> &recv_buffer);
+ prepare_buffer_for_answer(const unsigned int other_rank,
+ std::vector<T2> & recv_buffer);
/**
* Prepare the buffer where the payload of the answer of the request to
* @param[in] recv_buffer data to be sent part of the request (optional)
*/
virtual void
- read_answer(const int other_rank, const std::vector<T2> &recv_buffer);
+ read_answer(const unsigned int other_rank,
+ const std::vector<T2> &recv_buffer);
};
/**
* Utilities::MPI::ConsensusAlgorithmProcess::create_request().
*/
virtual void
- create_request(const int other_rank,
+ create_request(const unsigned int other_rank,
std::vector<std::pair<types::global_dof_index,
types::global_dof_index>>
&send_buffer) override
* Utilities::MPI::ConsensusAlgorithmProcess::create_request().
*/
virtual void
- create_request(const int other_rank,
+ create_request(const unsigned int other_rank,
std::vector<std::pair<types::global_dof_index,
types::global_dof_index>>
&send_buffer) override
*/
virtual void
prepare_buffer_for_answer(
- const int other_rank,
+ const unsigned int other_rank,
std::vector<unsigned int> &recv_buffer) override
{
recv_buffer.resize(recv_indices[other_rank].size());
* Utilities::MPI::ConsensusAlgorithmProcess::read_answer().
*/
virtual void
- read_answer(const int other_rank,
+ read_answer(const unsigned int other_rank,
const std::vector<unsigned int> &recv_buffer) override
{
Assert(recv_indices[other_rank].size() == recv_buffer.size(),
template <typename T1, typename T2>
void
- ConsensusAlgorithmProcess<T1, T2>::create_request(const int,
+ ConsensusAlgorithmProcess<T1, T2>::create_request(const unsigned int,
std::vector<T1> &)
{
// nothing to do
template <typename T1, typename T2>
void
ConsensusAlgorithmProcess<T1, T2>::prepare_buffer_for_answer(
- const int,
+ const unsigned int,
std::vector<T2> &)
{
// nothing to do
template <typename T1, typename T2>
void
- ConsensusAlgorithmProcess<T1, T2>::read_answer(const int,
+ ConsensusAlgorithmProcess<T1, T2>::read_answer(const unsigned int,
const std::vector<T2> &)
{
// nothing to do