dune-fem  2.4.1-rc
Public Types | Public Member Functions | Protected Attributes | List of all members
Dune::Fem::L2Projection< DType, RType > Class Template Reference

The L2Projection class provides methods for projecting a function unto a given discrete function space. Note that this implementation assumes orthogonal base functions! More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/operator/projection/l2projection.hh>

Inheritance diagram for Dune::Fem::L2Projection< DType, RType >:
Inheritance graph

Public Types

typedef DType DomainType
 domain function type More...
 
typedef RType RangeType
 range function type More...
 
typedef DType DomainFunctionType
 type of discrete function in the operator's domain More...
 
typedef RType RangeFunctionType
 type of discrete function in the operator's range More...
 
typedef DType::RangeFieldType DomainFieldType
 field type of the operator's domain More...
 
typedef RType::RangeFieldType RangeFieldType
 field type of the operator's range More...
 

Public Member Functions

 L2Projection (const int quadOrder=-1, const bool doCommunicate=true)
 Constructor. More...
 
virtual void operator() (const DomainType &function, RangeType &discreteFunction) const
 calculates the L2 projection of a function onto the discrete space discreteFunction belongs to. More...
 

Protected Attributes

const int quadOrder_
 
const bool doCommunicate_
 

Detailed Description

template<class DType, class RType>
class Dune::Fem::L2Projection< DType, RType >

The L2Projection class provides methods for projecting a function unto a given discrete function space. Note that this implementation assumes orthogonal base functions!

Member Typedef Documentation

typedef DType ::RangeFieldType Dune::Fem::Operator< DType , RType >::DomainFieldType
inherited

field type of the operator's domain

typedef DType Dune::Fem::Operator< DType , RType >::DomainFunctionType
inherited

type of discrete function in the operator's domain

template<class DType , class RType >
typedef DType Dune::Fem::L2Projection< DType, RType >::DomainType

domain function type

typedef RType ::RangeFieldType Dune::Fem::Operator< DType , RType >::RangeFieldType
inherited

field type of the operator's range

typedef RType Dune::Fem::Operator< DType , RType >::RangeFunctionType
inherited

type of discrete function in the operator's range

template<class DType , class RType >
typedef RType Dune::Fem::L2Projection< DType, RType >::RangeType

range function type

Constructor & Destructor Documentation

template<class DType , class RType >
Dune::Fem::L2Projection< DType, RType >::L2Projection ( const int  quadOrder = -1,
const bool  doCommunicate = true 
)
inlineexplicit

Constructor.

Parameters
quadOrderdegree for quadrature rule (default = 2*space.order())
doCommunicateapply communication for the result (default = true)

Member Function Documentation

template<class DType , class RType >
virtual void Dune::Fem::L2Projection< DType, RType >::operator() ( const DomainType function,
RangeType discreteFunction 
) const
inlinevirtual

calculates the L2 projection of a function onto the discrete space discreteFunction belongs to.

Parameters
functionfunction to be projected
discreteFunctiondiscrete result of projection

Implements Dune::Fem::Operator< DType, RType >.

References Dune::Fem::L2Projection< DType, RType >::doCommunicate_, Dune::Fem::DGL2ProjectionImpl::project(), and Dune::Fem::L2Projection< DType, RType >::quadOrder_.

Member Data Documentation

template<class DType , class RType >
const bool Dune::Fem::L2Projection< DType, RType >::doCommunicate_
protected
template<class DType , class RType >
const int Dune::Fem::L2Projection< DType, RType >::quadOrder_
protected

The documentation for this class was generated from the following file: