DUNE-FEM (unstable)

Dune::Fem::DiagonalStencil< DomainSpace, RangeSpace, Partition > Class Template Reference

Stencil contaning the entries (en,en) for all entities in the space. Defailt for an operator over a Lagrange space or a DG mass operator. More...

#include <dune/fem/operator/common/stencil.hh>

Public Types

typedef std::vector< std::size_t >::size_type IndexType
 type of std::vector for indexing
 

Public Member Functions

void fill (const DomainEntityType &dEntity, const RangeEntityType &rEntity, bool fillGhost=true) const
 Create stencil entries for (dEntity,rEntity) pair. More...
 
const LocalStencilTypelocalStencil (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 override
 method to setup stencil depending on entity set defined in derived class
 

Detailed Description

template<class DomainSpace, class RangeSpace, class Partition = Dune::Partitions::InteriorBorder>
class Dune::Fem::DiagonalStencil< DomainSpace, RangeSpace, Partition >

Stencil contaning the entries (en,en) for all entities in the space. Defailt for an operator over a Lagrange space or a DG mass operator.

Template Parameters
DomainSpacetype of discrete function space for the domain
RangeSpacetype of discrete function space for the range

Member Function Documentation

◆ fill()

template<class DomainSpace , class RangeSpace >
void Dune::Fem::Stencil< DomainSpace, RangeSpace >::fill ( const DomainEntityType &  dEntity,
const RangeEntityType &  rEntity,
bool  fillGhost = true 
) const
inlineinherited

Create stencil entries for (dEntity,rEntity) pair.

Parameters
[in]dEntitydomain entity
[in]rEntityrange entity
[in]fillGhostsetup 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()

template<class DomainSpace , class RangeSpace >
const LocalStencilType& Dune::Fem::Stencil< DomainSpace, RangeSpace >::localStencil ( const RangeGlobalKeyType &  key) const
inlineinherited

Return stencil for a given row of the matrix.

Parameters
[in]keykey 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:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 16, 22:29, 2024)