A data handle class to exchange entries of a vector. More...
#include <dumux/parallel/vectorcommdatahandle.hh>
A data handle class to exchange entries of a vector.
Public Types | |
using | DataType = typename Vector::value_type |
export type of data for message buffer More... | |
Public Member Functions | |
VectorCommDataHandle (const Mapper &mapper, Vector &vector) | |
bool | contains (int dim, int codim) const |
returns true if data for this codim should be communicated More... | |
bool | fixedsize (int dim, int codim) const |
returns true if size per entity of given dim and codim is a constant More... | |
template<class Entity > | |
std::size_t | size (Entity &entity) const |
how many objects of type DataType have to be sent for a given entity More... | |
template<class MessageBuffer , class Entity > | |
void | gather (MessageBuffer &buff, const Entity &entity) const |
pack data from user to message buffer More... | |
template<class MessageBuffer , class Entity > | |
void | scatter (MessageBuffer &buff, const Entity &entity, std::size_t n) |
unpack data from message buffer to user More... | |
Protected Attributes | |
const Mapper & | mapper_ |
Vector & | vector_ |
using Dumux::VectorCommDataHandle< Mapper, Vector, entityCodim, ScatterOperator >::DataType = typename Vector::value_type |
export type of data for message buffer
|
inline |
|
inline |
returns true if data for this codim should be communicated
|
inline |
returns true if size per entity of given dim and codim is a constant
|
inline |
pack data from user to message buffer
|
inline |
unpack data from message buffer to user
|
inline |
how many objects of type DataType have to be sent for a given entity
|
protected |
|
protected |