DUNE PDELab (2.7)

Dune::PDELab::LocalGlobalMapDataHandle< GFS > Class Template Reference

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

Public Types

typedef int DataType
 export type of data for message buffer
 

Public Member Functions

bool contains (int dim, int codim) const
 returns true if data for this codim should be communicated
 
bool fixedSize (int dim, int codim) const
 returns true if size per entity of given dim and codim is a constant
 
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
 
template<class MessageBuffer , class EntityType >
void scatter (MessageBuffer &buff, const EntityType &e, size_t n)
 
 LocalGlobalMapDataHandle (const GFS &gfs_, LocalToGlobalMap &l2g_, GlobalToLocalMap &g2l_)
 constructor
 
int fixedsize (int dim, int codim) const
 returns true if size of data per entity of given dim and codim is a constant More...
 
size_t size (const EntityType &e) const
 how many objects of type DataType have to be sent for a given entity More...
 
void gather (MessageBufferImp &buff, const EntityType &e) const
 pack data from user to message buffer More...
 
void scatter (MessageBufferImp &buff, const EntityType &e, size_t n)
 unpack data from message buffer to user. 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 Function Documentation

◆ fixedsize()

int Dune::CommDataHandleIF< LocalGlobalMapDataHandle< GFS > , int >::fixedsize ( int  dim,
int  codim 
) const
inlineinherited

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

Parameters
dimvalid dimension (i.e. the grids dimension)
codimvalid codimension of the entity set for which data should be communicated

This method calls 'fixedSize' (with a capital S) of the derived class, if it exists in the derived class. Otherwise, it calls 'fixedsize'.

Deprecated:
This method (with the lower-case 's') is deprecated. Use 'fixedSize' instead!

◆ gather()

void Dune::CommDataHandleIF< LocalGlobalMapDataHandle< GFS > , int >::gather ( MessageBufferImp &  buff,
const EntityType &  e 
) const
inlineinherited

pack data from user to message buffer

Parameters
buffmessage buffer provided by the grid
eentity for which date should be packed to buffer

◆ scatter() [1/2]

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

◆ scatter() [2/2]

void Dune::CommDataHandleIF< LocalGlobalMapDataHandle< GFS > , int >::scatter ( MessageBufferImp &  buff,
const EntityType &  e,
size_t  n 
)
inlineinherited

unpack data from message buffer to user.

Parameters
buffmessage buffer provided by the grid. This is not const, because the buffer has an internal iterator that gets advanced when reading from the buffer.
eentity for which date should be unpacked from buffer
nnumber of data written to buffer for this entity before

◆ size() [1/2]

size_t Dune::CommDataHandleIF< LocalGlobalMapDataHandle< GFS > , int >::size ( const EntityType &  e) const
inlineinherited

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

Note
Only the sender side needs to know this size.
Parameters
eentity for which the size should be determined

◆ size() [2/2]

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:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)