KASKADE 7 development version
Public Member Functions | List of all members
Collector Class Reference

Defines an interface for integrating values computed over a grid. More...

#include <concepts.hh>

Detailed Description

Defines an interface for integrating values computed over a grid.

Usually, integration is performed cellwise. A Collector stores the values computed on each cell for later postprocessing. It also supports parallel integration.

Definition at line 525 of file concepts.hh.

Public Member Functions

 Collector (Collector const &)
 Copy constructor. More...
 
template<class Cell >
int integrationOrder (Cell const &, int shapeFunctionOrder) const
 
template<class Cell , class Index , class Values >
void operator() (Cell const &cell, Index idx, LocalPosition xi, double weight, Values const &x)
 Collects values computed on the grid. More...
 
void join (Collector &c)
 Merges the result of two concurrently filled collectors. More...
 

Constructor & Destructor Documentation

◆ Collector()

Collector::Collector ( Collector const &  )

Copy constructor.

Member Function Documentation

◆ integrationOrder()

template<class Cell >
int Collector::integrationOrder ( Cell const &  ,
int  shapeFunctionOrder 
) const

◆ join()

void Collector::join ( Collector c)

Merges the result of two concurrently filled collectors.

Leaves the other collector c in a valid, destructable but unspecified state.

Referenced by Kaskade::gridIterate(), and Kaskade::ScaledTwoNorm2Collector< Functions, Scaling, Collector >::join().

◆ operator()()

template<class Cell , class Index , class Values >
void Collector::operator() ( Cell const &  cell,
Index  idx,
LocalPosition  xi,
double  weight,
Values const &  x 
)

Collects values computed on the grid.

Template Parameters
Valuesa boost::fusion sequence of Dune::FieldVector containing the function values
Parameters
cella codim 0 entity in the grid
idxthe index of the cell (within the used grid view)
xithe local quadrature position in the cell
weightthe integration weight of the quadrature rule on the cell
xthe values computed at this integration point

The documentation for this class was generated from the following file: