3#include <dune/typetree/childextraction.hh>
8 template <
class LocalOperator,
class RowTreePath,
class ColTreePath = RowTreePath>
23 template <
class Element>
24 void bind(Element
const& element)
42 template <
class ContextGeo,
class RowNode,
class ColNode,
class Mat>
43 void assemble(ContextGeo
const& cg, RowNode
const& row, ColNode
const& col, Mat& mat)
const
45 using Dune::TypeTree::child;
46 lop_.
assemble(cg,child(row,rowTp_),child(col,colTp_),mat);
55 template <
class ContextGeo,
class Node,
class Vec>
56 void assemble(ContextGeo
const& cg, Node
const& node, Vec& vec)
const
58 using Dune::TypeTree::child;
59 lop_.
assemble(cg,child(node,rowTp_),vec);
77 template <
class Operator,
class RowTreePath,
class ColTreePath = RowTreePath>
89 template <
class Gr
idView>
The local operator associated to the OperatorAdapter.
Definition: OperatorAdapter.hpp:10
LocalOperatorAdapter(LocalOperator const &lop, RowTreePath rowTp, ColTreePath colTp={})
Constructor, stores all the arguments in local variables.
Definition: OperatorAdapter.hpp:13
void bind(Element const &element)
Binds the local operator to an element.
Definition: OperatorAdapter.hpp:24
void assemble(ContextGeo const &cg, Node const &node, Vec &vec) const
Assemble a local element vector on the element that is bound.
Definition: OperatorAdapter.hpp:56
void assemble(ContextGeo const &cg, RowNode const &row, ColNode const &col, Mat &mat) const
Assemble a local element matrix on the element that is bound.
Definition: OperatorAdapter.hpp:43
void unbind()
Unbinds operator from element.
Definition: OperatorAdapter.hpp:30
The base class for a local operator to be used in a Assembler.
Definition: LocalOperator.hpp:75
void bind(Element const &element)
Binds the local operator to an element.
Definition: LocalOperator.hpp:106
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
void unbind()
Unbinds operator from element.
Definition: LocalOperator.hpp:112
Wraps an operator that is bound to some tree path (rwo,col) and transforms it into an operator that a...
Definition: OperatorAdapter.hpp:79
OperatorAdapter(Operator op, RowTreePath rowTp, ColTreePath colTp={})
Constructor, stores all the arguments in local variables.
Definition: OperatorAdapter.hpp:82
void update(GridView const &gv)
Update the wrapped operator on a GridView.
Definition: OperatorAdapter.hpp:90
friend auto localOperator(OperatorAdapter const &adapter)
Transform an operator into a local-operator.
Definition: OperatorAdapter.hpp:96
The base class for an operator to be used in an Assembler.
Definition: Operator.hpp:80
void update(GridView const &gv)
Update the operator data on a GridView.
Definition: Operator.hpp:102