DUNE-FEM (unstable)

Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation > Class Template Reference

Default communication handler for discrete functions. More...

#include <dune/fem/space/common/defaultcommhandler.hh>

Public Member Functions

DefaultCommunicationHandlerImploperator= (const DefaultCommunicationHandlerImpl &)=delete
 cannot be implemented because of the reference
 
template<class MessageBuffer , class Entity >
void gather (MessageBuffer &buffer, const Entity &entity) const
 read buffer and apply operation
 
template<class MessageBuffer , class Entity >
void scatter (MessageBuffer &buffer, const Entity &entity, size_t n)
 read buffer and apply operation
 
template<class Entity >
size_t size (const Entity &entity) const
 return local dof size to be communicated
 
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 DiscreteFunctionSpace, class DiscreteFunction, class Operation>
class Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >

Default communication handler for discrete functions.

Parameters
DiscreteFunctiontype of discrete function to be communicated
Template Parameters
DiscreteFunctiontype of discrete function to be communicated
Operation

Member Function Documentation

◆ gather()

void Dune::CommDataHandleIF< DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation > , DiscreteFunction::DofType >::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()

void Dune::CommDataHandleIF< DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation > , DiscreteFunction::DofType >::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()

size_t Dune::CommDataHandleIF< DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation > , DiscreteFunction::DofType >::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

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 (Nov 12, 23:30, 2024)