|
dune-fem 2.8.0
|
default implementation for a general operator stencil More...
#include <dune/fem/operator/common/stencil.hh>

Public Types | |
| typedef DomainIteratorType::Entity | DomainEntityType |
| typedef RangeIteratorType::Entity | RangeEntityType |
| typedef DomainBlockMapper::GlobalKeyType | DomainGlobalKeyType |
| typedef RangeBlockMapper::GlobalKeyType | RangeGlobalKeyType |
| 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 | |
| typedef std::conditional< indexIsSimple, std::unordered_map< RangeGlobalKeyType, LocalStencilType >, std::map< RangeGlobalKeyType, LocalStencilType > >::type | GlobalStencilType |
Public Member Functions | |
| Stencil (const DomainSpace &dSpace, const RangeSpace &rSpace) | |
| Constructor. | |
| const DomainSpace & | domainSpace () const |
| const RangeSpace & | rangeSpace () const |
| void | fill (const DomainEntityType &dEntity, const RangeEntityType &rEntity, bool fillGhost=true) const |
| Create stencil entries for (dEntity,rEntity) pair. | |
| const LocalStencilType & | localStencil (const RangeGlobalKeyType &key) const |
| Return stencil for a given row of the matrix. | |
| 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. | |
| int | rows () const |
| int | cols () const |
| void | update () |
| clear previously computed entries such that a re-compute happens when used again | |
| void | setup () |
Static Public Attributes | |
| static const bool | indexIsSimple = std::is_convertible< RangeGlobalKeyType, IndexType >::value |
Protected Member Functions | |
| virtual void | setupStencil () const =0 |
| method to setup stencil depending on entity set defined in derived class | |
Protected Attributes | |
| const DomainSpace & | domainSpace_ |
| const RangeSpace & | rangeSpace_ |
| const DomainBlockMapper & | domainBlockMapper_ |
| const RangeBlockMapper & | rangeBlockMapper_ |
| GlobalStencilType | globalStencil_ |
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.
| DomainSpace | type of discrete function space for the domain |
| RangeSpace | type of discrete function space for the range |
| typedef DomainIteratorType::Entity Dune::Fem::Stencil< DomainSpace, RangeSpace >::DomainEntityType |
| typedef DomainBlockMapper::GlobalKeyType Dune::Fem::Stencil< DomainSpace, RangeSpace >::DomainGlobalKeyType |
| typedef std::conditional<indexIsSimple,std::unordered_map<RangeGlobalKeyType,LocalStencilType>,std::map<RangeGlobalKeyType,LocalStencilType>>::type Dune::Fem::Stencil< DomainSpace, RangeSpace >::GlobalStencilType |
| typedef std::vector<std::size_t>::size_type Dune::Fem::Stencil< DomainSpace, RangeSpace >::IndexType |
type of std::vector for indexing
| typedef std::set< DomainGlobalKeyType > Dune::Fem::Stencil< DomainSpace, RangeSpace >::LocalStencilType |
type for storing the stencil of one row
| typedef RangeIteratorType::Entity Dune::Fem::Stencil< DomainSpace, RangeSpace >::RangeEntityType |
| typedef RangeBlockMapper::GlobalKeyType Dune::Fem::Stencil< DomainSpace, RangeSpace >::RangeGlobalKeyType |
|
inline |
Constructor.
| [in] | dSpace | domain space |
| [in] | rSpace | range space |
|
inline |
|
inline |
|
inline |
Create stencil entries for (dEntity,rEntity) pair.
| [in] | dEntity | domain entity |
| [in] | rEntity | range entity |
| [in] | fillGhost | setup stencil even for a ghost domain entity |
|
inline |
Return the full stencil.
|
inline |
Return stencil for a given row of the matrix.
| [in] | key | key for matrix row |
|
inline |
Return an upper bound for the maximum number of non-zero entries in all rows.
|
inline |
|
inline |
|
inline |
|
protectedpure virtual |
method to setup stencil depending on entity set defined in derived class
Implemented in Dune::Fem::DiagonalStencil< DomainSpace, RangeSpace, Partition >, Dune::Fem::DiagonalStencil< DomainDiscreteFunctionSpaceType, RangeDiscreteFunctionSpaceType >, Dune::Fem::DiagonalAndNeighborStencil< DomainSpace, RangeSpace, Partition >, and Dune::Fem::DiagonalAndNeighborStencil< DomainDiscreteFunctionSpaceType, RangeDiscreteFunctionSpaceType >.
|
inline |
clear previously computed entries such that a re-compute happens when used again
|
protected |
|
protected |
|
mutableprotected |
|
static |
|
protected |
|
protected |