DUNE-FEM (unstable)
default implementation for a general operator stencil More...
#include <dune/fem/operator/common/stencil.hh>
Public Types | |
typedef std::set< DomainGlobalKeyType > | LocalStencilType |
type for storing the stencil of one row | |
typedef std::vector< std::size_t >::size_type | IndexType |
type of std::vector for indexing | |
Public Member Functions | |
Stencil (const DomainSpace &dSpace, const RangeSpace &rSpace) | |
Constructor. More... | |
void | fill (const DomainEntityType &dEntity, const RangeEntityType &rEntity, bool fillGhost=true) const |
Create stencil entries for (dEntity,rEntity) pair. More... | |
const LocalStencilType & | localStencil (const RangeGlobalKeyType &key) const |
Return stencil for a given row of the matrix. More... | |
const GlobalStencilType & | globalStencil () const |
Return the full stencil. | |
int | maxNonZerosEstimate () const |
Return an upper bound for the maximum number of non-zero entries in all rows. | |
void | update () |
clear previously computed entries such that a re-compute happens when used again | |
Protected Member Functions | |
virtual void | setupStencil () const =0 |
method to setup stencil depending on entity set defined in derived class | |
Detailed Description
class Dune::Fem::Stencil< DomainSpace, RangeSpace >
default implementation for a general operator stencil
To assemble a matrix from an operator the method reserve has to be called on the linear operator class passing a stencil object as parameter. To setup a full stencil the method fill has to be called with each pair (en,nb) for which the localMatrix method is called during the assembly.
- Template Parameters
-
DomainSpace type of discrete function space for the domain RangeSpace type of discrete function space for the range
Constructor & Destructor Documentation
◆ Stencil()
|
inline |
Constructor.
- Parameters
-
[in] dSpace domain space [in] rSpace range space
Member Function Documentation
◆ fill()
|
inline |
Create stencil entries for (dEntity,rEntity) pair.
- Parameters
-
[in] dEntity domain entity [in] rEntity range entity [in] fillGhost setup stencil even for a ghost domain entity
References Dune::GhostEntity.
Referenced by Dune::Fem::DiagonalStencil< DomainSpace, RangeSpace, Partition >::setupStencil(), and Dune::Fem::DiagonalAndNeighborStencil< DomainSpace, RangeSpace, Partition >::setupStencil().
◆ localStencil()
|
inline |
Return stencil for a given row of the matrix.
- Parameters
-
[in] key key for matrix row
References Dune::Fem::Stencil< DomainSpace, RangeSpace >::globalStencil().
Referenced by Dune::Fem::Stencil< DomainSpace, RangeSpace >::setupStencil().
The documentation for this class was generated from the following file:
- dune/fem/operator/common/stencil.hh