DUNE-ACFEM (2.5.1)

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 EntityType >
size_t size (EntityType &e) const
 how many objects of type DataItemType have to be sent for a given entity. More...
 
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)
 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 EntityType >
size_t Dune::ACFem::IntersectionDataHandle< IndexSet, Storage, Operation >::size ( EntityType &  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.

Referenced by Dune::ACFem::IntersectionDataHandle< IndexSet, Storage, Operation >::scatter().


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)