dune-fem 2.8-git
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::WeightedL2Norm< WeightFunction > Class Template Reference

#include <dune/fem/misc/l2norm.hh>

Inheritance diagram for Dune::Fem::WeightedL2Norm< WeightFunction >:
Inheritance graph

Classes

struct  WeightedFunctionSquare
 

Public Types

typedef WeightFunction WeightFunctionType
 
typedef WeightFunctionType::DiscreteFunctionSpaceType WeightFunctionSpaceType
 
typedef WeightFunctionSpaceType::GridPartType GridPartType
 

Public Member Functions

 WeightedL2Norm (const WeightFunctionType &weightFunction, const unsigned int order=0, const bool communicate=true)
 
template<class LocalFunctionType , class ReturnType >
void normLocal (const EntityType &entity, unsigned int order, const LocalFunctionType &uLocal, ReturnType &sum) const
 
template<class ULocalFunctionType , class VLocalFunctionType , class ReturnType >
void distanceLocal (const EntityType &entity, unsigned int order, const ULocalFunctionType &uLocal, const VLocalFunctionType &vLocal, ReturnType &sum) const
 
template<class DiscreteFunctionType , class PartitionSet >
Dune::FieldTraits< typenameDiscreteFunctionType::RangeFieldType >::real_type norm (const DiscreteFunctionType &u, const PartitionSet &partitionSet) const
 || u ||_L2 on given set of entities (partition set) More...
 
template<class DiscreteFunctionType >
Dune::FieldTraits< typenameDiscreteFunctionType::RangeFieldType >::real_type norm (const DiscreteFunctionType &u) const
 || u ||_L2 on interior partition entities More...
 
template<class UDiscreteFunctionType , class VDiscreteFunctionType , class PartitionSet >
Dune::FieldTraits< typenameUDiscreteFunctionType::RangeFieldType >::real_type distance (const UDiscreteFunctionType &u, const VDiscreteFunctionType &v, const PartitionSet &partitionSet) const
 || u - v ||_L2 on given set of entities (partition set) More...
 
template<class UDiscreteFunctionType , class VDiscreteFunctionType >
Dune::FieldTraits< typenameUDiscreteFunctionType::RangeFieldType >::real_type distance (const UDiscreteFunctionType &u, const VDiscreteFunctionType &v) const
 || u - v ||_L2 on interior partition entities More...
 
void distanceLocal (const EntityType &entity, unsigned int order, const ULocalFunctionType &uLocal, const VLocalFunctionType &vLocal, ReturnType &sum) const
 
void normLocal (const EntityType &entity, unsigned int order, const LocalFunctionType &uLocal, ReturnType &sum) const
 

Protected Types

typedef ConstLocalFunction< WeightFunctionTypeLocalWeightFunctionType
 
typedef WeightFunctionType::RangeType WeightType
 
typedef BaseType::EntityType EntityType
 
typedef BaseType::IntegratorType IntegratorType
 
typedef CachingQuadrature< GridPartType, 0 > QuadratureType
 

Protected Member Functions

ReturnType forEach (const DiscreteFunctionType &u, const ReturnType &initialValue, const PartitionSet &partitionSet, unsigned int order=0) const
 
ReturnType forEach (const UDiscreteFunctionType &u, const VDiscreteFunctionType &v, const ReturnType &initialValue, const PartitionSet &partitionSet, unsigned int order=0) const
 
const GridPartTypegridPart () const
 
const GridPartType::CollectiveCommunicationType & comm () const
 
bool checkCommunicateFlag (bool communicate) const
 
const L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > & asImp () const
 
L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > & asImp ()
 

Static Protected Member Functions

static const L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > & asImp (const ThisType &other)
 
static L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > & asImp (ThisType &other)
 

Protected Attributes

const unsigned int order_
 
const bool communicate_
 

Member Typedef Documentation

◆ EntityType

template<class WeightFunction >
typedef BaseType::EntityType Dune::Fem::WeightedL2Norm< WeightFunction >::EntityType
protected

◆ GridPartType

template<class WeightFunction >
typedef WeightFunctionSpaceType::GridPartType Dune::Fem::WeightedL2Norm< WeightFunction >::GridPartType

◆ IntegratorType

template<class WeightFunction >
typedef BaseType::IntegratorType Dune::Fem::WeightedL2Norm< WeightFunction >::IntegratorType
protected

◆ LocalWeightFunctionType

template<class WeightFunction >
typedef ConstLocalFunction< WeightFunctionType > Dune::Fem::WeightedL2Norm< WeightFunction >::LocalWeightFunctionType
protected

◆ QuadratureType

typedef CachingQuadrature< GridPartType, 0 > Dune::Fem::L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType >::QuadratureType
protectedinherited

◆ WeightFunctionSpaceType

template<class WeightFunction >
typedef WeightFunctionType::DiscreteFunctionSpaceType Dune::Fem::WeightedL2Norm< WeightFunction >::WeightFunctionSpaceType

◆ WeightFunctionType

template<class WeightFunction >
typedef WeightFunction Dune::Fem::WeightedL2Norm< WeightFunction >::WeightFunctionType

◆ WeightType

template<class WeightFunction >
typedef WeightFunctionType::RangeType Dune::Fem::WeightedL2Norm< WeightFunction >::WeightType
protected

Constructor & Destructor Documentation

◆ WeightedL2Norm()

template<class WeightFunction >
Dune::Fem::WeightedL2Norm< WeightFunction >::WeightedL2Norm ( const WeightFunctionType weightFunction,
const unsigned int  order = 0,
const bool  communicate = true 
)
inlineexplicit

Member Function Documentation

◆ asImp() [1/4]

L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > & Dune::Fem::BartonNackmanInterface< IntegralBase< WeightFunction::DiscreteFunctionSpaceType::GridPartType, L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > > , L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > >::asImp ( )
inlineprotectedinherited

◆ asImp() [2/4]

const L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > & Dune::Fem::BartonNackmanInterface< IntegralBase< WeightFunction::DiscreteFunctionSpaceType::GridPartType, L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > > , L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > >::asImp ( ) const
inlineprotectedinherited

◆ asImp() [3/4]

static const L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > & Dune::Fem::BartonNackmanInterface< IntegralBase< WeightFunction::DiscreteFunctionSpaceType::GridPartType, L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > > , L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > >::asImp ( const ThisType other)
inlinestaticprotectedinherited

◆ asImp() [4/4]

static L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > & Dune::Fem::BartonNackmanInterface< IntegralBase< WeightFunction::DiscreteFunctionSpaceType::GridPartType, L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > > , L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > >::asImp ( ThisType other)
inlinestaticprotectedinherited

◆ checkCommunicateFlag()

bool Dune::Fem::IntegralBase< WeightFunction::DiscreteFunctionSpaceType::GridPartType , L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > >::checkCommunicateFlag ( bool  communicate) const
inlineprotectedinherited

◆ comm()

const GridPartType::CollectiveCommunicationType & Dune::Fem::IntegralBase< WeightFunction::DiscreteFunctionSpaceType::GridPartType , L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > >::comm ( ) const
inlineprotectedinherited

◆ distance() [1/2]

template<class WeightFunction >
template<class UDiscreteFunctionType , class VDiscreteFunctionType >
Dune::FieldTraits< typenameUDiscreteFunctionType::RangeFieldType >::real_type Dune::Fem::L2Norm< GridPart >::distance ( const UDiscreteFunctionType &  u,
const VDiscreteFunctionType &  v 
) const
inline

|| u - v ||_L2 on interior partition entities

◆ distance() [2/2]

template<class WeightFunction >
template<class UDiscreteFunctionType , class VDiscreteFunctionType , class PartitionSet >
Dune::FieldTraits< typenameUDiscreteFunctionType::RangeFieldType >::real_type Dune::Fem::L2Norm< GridPart >::distance ( const UDiscreteFunctionType &  u,
const VDiscreteFunctionType &  v,
const PartitionSet &  partitionSet 
) const

|| u - v ||_L2 on given set of entities (partition set)

◆ distanceLocal() [1/2]

void Dune::Fem::L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType >::distanceLocal ( const EntityType entity,
unsigned int  order,
const ULocalFunctionType &  uLocal,
const VLocalFunctionType &  vLocal,
ReturnType &  sum 
) const
inlineinherited

◆ distanceLocal() [2/2]

template<class WeightFunction >
template<class ULocalFunctionType , class VLocalFunctionType , class ReturnType >
void Dune::Fem::WeightedL2Norm< WeightFunction >::distanceLocal ( const EntityType entity,
unsigned int  order,
const ULocalFunctionType &  uLocal,
const VLocalFunctionType &  vLocal,
ReturnType &  sum 
) const
inline

◆ forEach() [1/2]

ReturnType Dune::Fem::IntegralBase< WeightFunction::DiscreteFunctionSpaceType::GridPartType , L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > >::forEach ( const DiscreteFunctionType &  u,
const ReturnType &  initialValue,
const PartitionSet &  partitionSet,
unsigned int  order = 0 
) const
inlineprotectedinherited

◆ forEach() [2/2]

ReturnType Dune::Fem::IntegralBase< WeightFunction::DiscreteFunctionSpaceType::GridPartType , L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > >::forEach ( const UDiscreteFunctionType &  u,
const VDiscreteFunctionType &  v,
const ReturnType &  initialValue,
const PartitionSet &  partitionSet,
unsigned int  order = 0 
) const
inlineprotectedinherited

◆ gridPart()

const GridPartType & Dune::Fem::IntegralBase< WeightFunction::DiscreteFunctionSpaceType::GridPartType , L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType > >::gridPart ( ) const
inlineprotectedinherited

◆ norm() [1/2]

template<class WeightFunction >
template<class DiscreteFunctionType >
Dune::FieldTraits< typenameDiscreteFunctionType::RangeFieldType >::real_type Dune::Fem::L2Norm< GridPart >::norm ( const DiscreteFunctionType &  u) const
inline

|| u ||_L2 on interior partition entities

◆ norm() [2/2]

template<class WeightFunction >
template<class DiscreteFunctionType , class PartitionSet >
Dune::FieldTraits< typenameDiscreteFunctionType::RangeFieldType >::real_type Dune::Fem::L2Norm< GridPart >::norm ( const DiscreteFunctionType &  u,
const PartitionSet &  partitionSet 
) const

|| u ||_L2 on given set of entities (partition set)

◆ normLocal() [1/2]

void Dune::Fem::L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType >::normLocal ( const EntityType entity,
unsigned int  order,
const LocalFunctionType &  uLocal,
ReturnType &  sum 
) const
inlineinherited

◆ normLocal() [2/2]

template<class WeightFunction >
template<class LocalFunctionType , class ReturnType >
void Dune::Fem::WeightedL2Norm< WeightFunction >::normLocal ( const EntityType entity,
unsigned int  order,
const LocalFunctionType &  uLocal,
ReturnType &  sum 
) const
inline

Member Data Documentation

◆ communicate_

const bool Dune::Fem::L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType >::communicate_
protectedinherited

◆ order_

const unsigned int Dune::Fem::L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType >::order_
protectedinherited

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