formula.hh
Base class for piecewise defined formula, which are a function of a FE function.
Definition: formula.hh:33
Piecewise defined function on a number of cells.
Definition: piecewiseFormula.hh:43
const ElementWithCell< G > * element_(const Connector &cell) const
Returns pointer to the element to which the cell cell or one of their children belongs.
Definition: formula.hh:79
Definition: formula.hh:100
virtual PiecewiseFormulaVector< 1, F, G, H > * clone() const
Virtual constructor.
Definition: formula.hh:182
#define conceptsAssert(cond, exc)
Assert that a certain condition is fulfilled.
Definition: exceptions.hh:394
#define DEBUGL(doit, msg)
virtual PiecewiseFormulaVector< dim, F, G, H > * clone() const
Virtual constructor.
Definition: formula.hh:104
std::map< uint, const ElementWithCell< G > * > elm_
Mapping from cell key to the element.
Definition: formula.hh:47
virtual Connector * child(uint i, bool mode=0)=0
Returns the ith child of the connector.
PiecewiseFormulaVector(const Space< G > &spc, const Vector< F > &coeff, const ElementFunction< H, G > &fun)
Definition: formula.hh:119
virtual Scanner * scan() const =0
Returns a scanner to iterate over the elements of the space.
An abstract class for scanning a mesh (a set of cells) or a space (a set of elements).
Definition: scannerConnectors.hh:29
void memorycpy(F *dest, const G *src, size_t n)
Copies n entries from src to dest (faster than std::memcpy)
Definition: vectorsMatrices.hh:31
virtual const Cell & cell() const =0
Returns the cell on which the element is built.
virtual Point< H, dim > operator()(const Connector &cell, const Real p, const Real t=0.0) const
Gives the value in an particular cell on a particular point.
Definition: formula.hh:125
PiecewiseFormulaVectorBase(const Space< G > &spc, const Vector< F > &coeff, const ElementFunction< I, G > &fun)
Constructor.
Definition: formula.hh:57