3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | List of all members
Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange Class Reference

A DataHandle class to exchange matrix entries. More...

#include <dumux/linear/amgparallelhelpers.hh>

Inheritance diagram for Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange:
Inheritance graph

Description

template<class GridView, class AmgTraits>
class Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange

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...
 

Member Typedef Documentation

◆ DataType

template<class GridView , class AmgTraits >
using Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange::DataType = MatEntry

Export type of data for message buffer.

Constructor & Destructor Documentation

◆ MatEntryExchange()

template<class GridView , class AmgTraits >
Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange::MatEntryExchange ( const DofMapper &  mapper,
const std::map< IdType, int > &  g2i,
const std::map< int, IdType > &  i2g,
Matrix &  A 
)
inline

Constructor.

Parameters
[in]mapperThe local dof mapper.
[in]g2iGlobal to local index map.
[in]i2gLocal to global index map.
[in]AMatrix to operate on.

Member Function Documentation

◆ contains()

template<class GridView , class AmgTraits >
bool Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange::contains ( int  dim,
int  codim 
) const
inline

Returns true if data for given valid codim should be communicated.

◆ fixedsize()

template<class GridView , class AmgTraits >
bool Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange::fixedsize ( int  dim,
int  codim 
) const
inline

Returns true if size of data per entity of given dim and codim is a constant.

◆ gather()

template<class GridView , class AmgTraits >
template<class MessageBuffer , class EntityType >
void Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange::gather ( MessageBuffer &  buff,
const EntityType &  e 
) const
inline

Pack data from user to message buffer.

◆ scatter()

template<class GridView , class AmgTraits >
template<class MessageBuffer , class EntityType >
void Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange::scatter ( MessageBuffer &  buff,
const EntityType &  e,
size_t  n 
)
inline

Unpack data from message buffer to user.

◆ size()

template<class GridView , class AmgTraits >
template<class EntityType >
size_t Dumux::EntityExchanger< GridView, AmgTraits >::MatEntryExchange::size ( EntityType &  e) const
inline

How many objects of type DataType have to be sent for a given entity.


The documentation for this class was generated from the following file: