dune-pdelab  2.5-dev
Public Types | Public Member Functions | List of all members
Dune::PDELab::LocalGlobalMapDataHandle< GFS > Class Template Reference

#include <dune/pdelab/backend/istl/ovlp_amg_dg_backend.hh>

Inheritance diagram for Dune::PDELab::LocalGlobalMapDataHandle< GFS >:
Inheritance graph

Public Types

typedef GFS::Traits::GridView GV
 
typedef GV::IndexSet IndexSet
 
typedef IndexSet::IndexType IndexType
 
typedef GV::Grid Grid
 
typedef Grid::Traits::GlobalIdSet GlobalIdSet
 
typedef GlobalIdSet::IdType IdType
 
typedef int DataType
 export type of data for message buffer More...
 
typedef std::map< IndexType, IdTypeLocalToGlobalMap
 
typedef std::map< IdType, IndexTypeGlobalToLocalMap
 

Public Member Functions

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)
 
 LocalGlobalMapDataHandle (const GFS &gfs_, LocalToGlobalMap &l2g_, GlobalToLocalMap &g2l_)
 constructor More...
 

Detailed Description

template<class GFS>
class Dune::PDELab::LocalGlobalMapDataHandle< GFS >

Data handle to build up local index to global id and global id to local index map for codim 0 in overlap

Member Typedef Documentation

◆ DataType

template<class GFS >
typedef int Dune::PDELab::LocalGlobalMapDataHandle< GFS >::DataType

export type of data for message buffer

◆ GlobalIdSet

template<class GFS >
typedef Grid::Traits::GlobalIdSet Dune::PDELab::LocalGlobalMapDataHandle< GFS >::GlobalIdSet

◆ GlobalToLocalMap

template<class GFS >
typedef std::map<IdType,IndexType> Dune::PDELab::LocalGlobalMapDataHandle< GFS >::GlobalToLocalMap

◆ Grid

template<class GFS >
typedef GV::Grid Dune::PDELab::LocalGlobalMapDataHandle< GFS >::Grid

◆ GV

template<class GFS >
typedef GFS::Traits::GridView Dune::PDELab::LocalGlobalMapDataHandle< GFS >::GV

◆ IdType

template<class GFS >
typedef GlobalIdSet::IdType Dune::PDELab::LocalGlobalMapDataHandle< GFS >::IdType

◆ IndexSet

template<class GFS >
typedef GV::IndexSet Dune::PDELab::LocalGlobalMapDataHandle< GFS >::IndexSet

◆ IndexType

template<class GFS >
typedef IndexSet::IndexType Dune::PDELab::LocalGlobalMapDataHandle< GFS >::IndexType

◆ LocalToGlobalMap

template<class GFS >
typedef std::map<IndexType,IdType> Dune::PDELab::LocalGlobalMapDataHandle< GFS >::LocalToGlobalMap

Constructor & Destructor Documentation

◆ LocalGlobalMapDataHandle()

template<class GFS >
Dune::PDELab::LocalGlobalMapDataHandle< GFS >::LocalGlobalMapDataHandle ( const GFS &  gfs_,
LocalToGlobalMap l2g_,
GlobalToLocalMap g2l_ 
)
inline

constructor

Member Function Documentation

◆ contains()

template<class GFS >
bool Dune::PDELab::LocalGlobalMapDataHandle< GFS >::contains ( int  dim,
int  codim 
) const
inline

returns true if data for this codim should be communicated

◆ fixedsize()

template<class GFS >
bool Dune::PDELab::LocalGlobalMapDataHandle< GFS >::fixedsize ( int  dim,
int  codim 
) const
inline

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

◆ gather()

template<class GFS >
template<class MessageBuffer , class EntityType >
void Dune::PDELab::LocalGlobalMapDataHandle< GFS >::gather ( MessageBuffer &  buff,
const EntityType &  e 
) const
inline

pack data from user to message buffer

◆ scatter()

template<class GFS >
template<class MessageBuffer , class EntityType >
void Dune::PDELab::LocalGlobalMapDataHandle< GFS >::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 GFS >
template<class EntityType >
size_t Dune::PDELab::LocalGlobalMapDataHandle< GFS >::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: