A DataHandle class to exchange matrix entries. More...
#include <dumux/linear/amgparallelhelpers.hh>
A DataHandle class to exchange matrix entries.
Public Types | |
using | DataType = MatEntry |
Export type of data for message buffer. More... | |
Public Member Functions | |
MatEntryExchange (const DofMapper &mapper, const std::map< IdType, int > &g2i, const std::map< int, IdType > &i2g, Matrix &A) | |
Constructor. More... | |
bool | contains (int dim, int codim) const |
Returns true if data for given valid codim should be communicated. More... | |
bool | fixedsize (int dim, int codim) const |
Returns true if size of data per entity of given dim and codim is a constant. More... | |
template<class EntityType > | |
size_t | size (EntityType &e) const |
How many objects of type DataType have to be sent for a given entity. More... | |
template<class MessageBuffer , class EntityType > | |
void | gather (MessageBuffer &buff, const EntityType &e) const |
Pack data from user to message buffer. More... | |
template<class MessageBuffer , class EntityType > | |
void | scatter (MessageBuffer &buff, const EntityType &e, size_t n) |
Unpack data from message buffer to user. More... | |
using Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange::DataType = MatEntry |
Export type of data for message buffer.
|
inline |
Constructor.
[in] | mapper | The local dof mapper. |
[in] | g2i | Global to local index map. |
[in] | i2g | Local to global index map. |
[in] | A | Matrix to operate on. |
|
inline |
Returns true if data for given valid codim should be communicated.
|
inline |
Returns true if size of data 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.