KASKADE 7 development version
|
Defines an interface for integrating values computed over a grid. More...
#include <concepts.hh>
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... | |
Collector::Collector | ( | Collector const & | ) |
Copy constructor.
int Collector::integrationOrder | ( | Cell const & | , |
int | shapeFunctionOrder | ||
) | const |
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().
void Collector::operator() | ( | Cell const & | cell, |
Index | idx, | ||
LocalPosition | xi, | ||
double | weight, | ||
Values const & | x | ||
) |
Collects values computed on the grid.
Values | a boost::fusion sequence of Dune::FieldVector containing the function values |
cell | a codim 0 entity in the grid |
idx | the index of the cell (within the used grid view) |
xi | the local quadrature position in the cell |
weight | the integration weight of the quadrature rule on the cell |
x | the values computed at this integration point |