|
dune-fem
2.8-git
|
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 More... | |
| typedef std::map< RangeGlobalKeyType, LocalStencilType > | GlobalStencilType |
| type for storing the full stencil More... | |
Public Member Functions | |
| Stencil (const DomainSpace &dSpace, const RangeSpace &rSpace) | |
| Constructor. More... | |
| void | fill (const DomainEntityType &dEntity, const RangeEntityType &rEntity, bool fillGhost=true) |
| 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. More... | |
| int | maxNonZerosEstimate () const |
| Return an upper bound for the maximum number of non-zero entries in all row. More... | |
| int | rows () const |
| int | cols () const |
Protected Attributes | |
| 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::map<RangeGlobalKeyType,LocalStencilType> Dune::Fem::Stencil< DomainSpace, RangeSpace >::GlobalStencilType |
type for storing the full stencil
| 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 |
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 row.
|
inline |
|
protected |
|
protected |
|
protected |