dune-pdelab  2.5-dev
Public Types | Public Member Functions | List of all members
VectorExchange< GV, V > Class Template Reference

#include <dune/pdelab/localoperator/darcyccfv.hh>

Inheritance diagram for VectorExchange< GV, V >:
Inheritance graph

Public Types

using DataType = typename V::value_type
 export type of data for message buffer More...
 

Public Member Functions

 VectorExchange (const GV &gv_, V &c_)
 constructor More...
 
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 EntityType >
size_t size (EntityType &e) const
 
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)
 

Member Typedef Documentation

◆ DataType

template<class GV , class V >
using VectorExchange< GV, V >::DataType = typename V::value_type

export type of data for message buffer

Constructor & Destructor Documentation

◆ VectorExchange()

template<class GV , class V >
VectorExchange< GV, V >::VectorExchange ( const GV &  gv_,
V &  c_ 
)
inline

constructor

Member Function Documentation

◆ contains()

template<class GV , class V >
bool VectorExchange< GV, V >::contains ( int  dim,
int  codim 
) const
inline

returns true if data for this codim should be communicated

◆ fixedsize()

template<class GV , class V >
bool VectorExchange< GV, V >::fixedsize ( int  dim,
int  codim 
) const
inline

returns true if size per entity of given dim and codim is a constant

◆ gather()

template<class GV , class V >
template<class MessageBuffer , class EntityType >
void VectorExchange< GV, V >::gather ( MessageBuffer &  buff,
const EntityType &  e 
) const
inline

pack data from user to message buffer

◆ scatter()

template<class GV , class V >
template<class MessageBuffer , class EntityType >
void VectorExchange< GV, V >::scatter ( MessageBuffer &  buff,
const EntityType &  e,
size_t  n 
)
inline

unpack data from message buffer to user

n is the number of objects sent by the sender

◆ size()

template<class GV , class V >
template<class EntityType >
size_t VectorExchange< GV, V >::size ( EntityType &  e) const
inline

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

Note: Only the sender side needs to know this size.


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