3 #include <amdis/BoundarySubset.hpp> 4 #include <amdis/ContextGeometry.hpp> 9 template <
class LocalOperator,
class Intersection>
15 : lop_(
std::move(lop))
20 template <
class Element>
21 void bind(Element
const& element)
23 if ((bound_ = element.hasBoundaryIntersections(), bound_))
43 template <
class... Args>
46 if (bound_ && bs_(cg.
context()))
64 template <
class Operator,
class Intersection>
74 template <
class Gr
idView>
75 void update(GridView
const& gridView)
An operator to be assembled on a boundary intersection belonging to a given boundary subset...
Definition: BoundaryOperator.hpp:65
The base class for an operator to be used in an Assembler.
Definition: Operator.hpp:78
void unbind()
Unbind the local-operators from the element.
Definition: BoundaryOperator.hpp:28
void bind(Element const &element)
Bind the local-operators to the element if the element has boundary intersections.
Definition: BoundaryOperator.hpp:21
void assemble(ContextGeo const &cg, Nodes const &... ns, MatVec &mv) const
Assemble a local element matrix or vector on the element that is bound.
Definition: LocalOperator.hpp:123
Definition: FieldMatVec.hpp:12
void assemble(ContextGeometry< Intersection > const &cg, Args &&... args) const
Assemble a local element matrix on the given intersection if it belongs to the boundary subset...
Definition: BoundaryOperator.hpp:44
Definition: AdaptBase.hpp:6
friend auto localOperator(BoundaryOperator const &bop)
Transform an operator into a local-operator.
Definition: BoundaryOperator.hpp:81
void bind(Element const &element)
Binds the local operator to an element.
Definition: LocalOperator.hpp:106
Context const & context() const
Return the LocalContext, either the element or an intersection.
Definition: ContextGeometry.hpp:85
The base class for a local operator to be used in a Assembler.
Definition: LocalOperator.hpp:73
void unbind()
Unbinds operator from element.
Definition: LocalOperator.hpp:112
void update(GridView const &gridView)
Update the operator data on a GridView.
Definition: BoundaryOperator.hpp:75
Wrapper class for element and geometry.
Definition: ContextGeometry.hpp:48
BoundaryLocalOperator(LocalOperator lop, BoundarySubset< Intersection > bs)
Constructor, stores all arguments in local variables.
Definition: BoundaryOperator.hpp:14
The local operator associated to BoundaryOperator.
Definition: BoundaryOperator.hpp:10