Template Function combigrid::CombiCom::addIndexedElements

Function Documentation

template<typename FG_ELEMENT>
void combigrid::CombiCom::addIndexedElements(void *invec, void *inoutvec, int *len, MPI_Datatype *dtype)

custom MPI_Op for adding indexed elements, to avoid intermediate copies

Template Parameters:

FG_ELEMENT – the type of the elements in the sparse grid

Parameters:
  • invec – input vector

  • inoutvec – input/output vector

  • len – unused, must be 1

  • dtype – MPI datatype

Throws:

std::runtime_error – if len>1, datatype not understood, num_addresses != 0, or num_integers%2