DUNE-ACFEM (unstable)

Dune::ACFem::IntersectionDataHandle< IndexSet, Storage, Operation > Class Template Reference

General intersection - intersection communication which communicates for each intersection a potentially variable number of data-items. More...

#include <dune/acfem/common/intersectiondatahandle.hh>

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
 This entire beast is meant for communication like arrays of values at each quadrature point, hence we cannot be fixedsize in the most general case (multiple intersections, different kinds of reference elements).
 
template<class Entity >
size_t size (const Entity &e) const
 how many objects of type DataItemType have to be sent for a given entity. More...
 
template<class MessageBuffer , class Entity >
void gather (MessageBuffer &buff, const Entity &e) const
 pack data from user to message buffer
 
template<class MessageBuffer , class Entity >
void scatter (MessageBuffer &buff, const Entity &e, size_t n)
 unpack data from message to user buffer
 

Detailed Description

template<class IndexSet, class Storage, class Operation>
class Dune::ACFem::IntersectionDataHandle< IndexSet, Storage, Operation >

General intersection - intersection communication which communicates for each intersection a potentially variable number of data-items.

Parameters
IndexSetThe index set for the entities of the underlying GridView.
StorageA random access container class which allows for indexing with the face index-set. Each element of the container is itself a container with elements which have to be compatible with the Operation functor (i.e. Operation::apply(src, dst) must be possible with the elements of the per-face-entity containers).
OperationA functor which is called in the scatter() method.

Member Function Documentation

◆ size()

template<class IndexSet , class Storage , class Operation >
template<class Entity >
size_t Dune::ACFem::IntersectionDataHandle< IndexSet, Storage, Operation >::size ( const Entity &  e) const
inline

how many objects of type DataItemType 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 (Dec 27, 23:30, 2024)