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::L1Norm< GridPart > Class Template Reference

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

Inheritance diagram for Dune::Fem::L1Norm< GridPart >:
Inheritance graph

Classes

struct  FunctionAbs
 
struct  FunctionDistance
 

Public Types

typedef GridPart GridPartType
 

Public Member Functions

 L1Norm (const GridPartType &gridPart, const unsigned int order=0, const bool communicate=true)
 constructor More...
 
template<class DiscreteFunctionType , class PartitionSet >
Dune::FieldTraits< typenameDiscreteFunctionType::RangeFieldType >::real_type norm (const DiscreteFunctionType &u, const PartitionSet &partitionSet) const
 || u ||_L1 on given set of entities (partition set) More...
 
template<class DiscreteFunctionType >
Dune::FieldTraits< typenameDiscreteFunctionType::RangeFieldType >::real_type norm (const DiscreteFunctionType &u) const
 || u ||_L1 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...
 
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
 

Protected Types

typedef BaseType::EntityType EntityType
 
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
 
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
 
const GridPartTypegridPart () const
 
const GridPartType::CollectiveCommunicationType & comm () const
 
bool checkCommunicateFlag (bool communicate) const
 
const L1Norm< GridPart > & asImp () const
 
L1Norm< GridPart > & asImp ()
 

Static Protected Member Functions

static const L1Norm< GridPart > & asImp (const ThisType &other)
 
static L1Norm< GridPart > & asImp (ThisType &other)
 

Protected Attributes

const unsigned int order_
 
const bool communicate_
 

Member Typedef Documentation

◆ EntityType

template<class GridPart >
typedef BaseType::EntityType Dune::Fem::L1Norm< GridPart >::EntityType
protected

◆ GridPartType

template<class GridPart >
typedef GridPart Dune::Fem::L1Norm< GridPart >::GridPartType

◆ QuadratureType

template<class GridPart >
typedef CachingQuadrature< GridPartType, 0 > Dune::Fem::L1Norm< GridPart >::QuadratureType
protected

Constructor & Destructor Documentation

◆ L1Norm()

template<class GridPart >
Dune::Fem::L1Norm< GridPart >::L1Norm ( const GridPartType gridPart,
const unsigned int  order = 0,
const bool  communicate = true 
)
inlineexplicit

constructor

Parameters
gridPartspecific gridPart for selection of entities
orderorder of integration quadrature (default = 2*space.order())
communicateif true global (over all ranks) norm is computed (default = true)

Member Function Documentation

◆ asImp() [1/4]

L1Norm< GridPart > & Dune::Fem::BartonNackmanInterface< IntegralBase< GridPart, L1Norm< GridPart > > , L1Norm< GridPart > >::asImp ( )
inlineprotectedinherited

◆ asImp() [2/4]

const L1Norm< GridPart > & Dune::Fem::BartonNackmanInterface< IntegralBase< GridPart, L1Norm< GridPart > > , L1Norm< GridPart > >::asImp ( ) const
inlineprotectedinherited

◆ asImp() [3/4]

static const L1Norm< GridPart > & Dune::Fem::BartonNackmanInterface< IntegralBase< GridPart, L1Norm< GridPart > > , L1Norm< GridPart > >::asImp ( const ThisType other)
inlinestaticprotectedinherited

◆ asImp() [4/4]

static L1Norm< GridPart > & Dune::Fem::BartonNackmanInterface< IntegralBase< GridPart, L1Norm< GridPart > > , L1Norm< GridPart > >::asImp ( ThisType other)
inlinestaticprotectedinherited

◆ checkCommunicateFlag()

bool Dune::Fem::IntegralBase< GridPart, L1Norm< GridPart > >::checkCommunicateFlag ( bool  communicate) const
inlineprotectedinherited

◆ comm()

const GridPartType::CollectiveCommunicationType & Dune::Fem::IntegralBase< GridPart, L1Norm< GridPart > >::comm ( ) const
inlineprotectedinherited

◆ distance() [1/2]

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

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

◆ distance() [2/2]

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

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

◆ distanceLocal() [1/2]

void Dune::Fem::IntegralBase< GridPart, L1Norm< GridPart > >::distanceLocal ( const EntityType entity,
unsigned int  order,
const ULocalFunctionType &  uLocal,
const VLocalFunctionType &  vLocal,
ReturnType &  sum 
) const
inlineprotectedinherited

◆ distanceLocal() [2/2]

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

◆ forEach() [1/2]

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

◆ forEach() [2/2]

ReturnType Dune::Fem::IntegralBase< GridPart, L1Norm< GridPart > >::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< GridPart, L1Norm< GridPart > >::gridPart ( ) const
inlineprotectedinherited

◆ norm() [1/2]

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

|| u ||_L1 on interior partition entities

◆ norm() [2/2]

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

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

◆ normLocal() [1/2]

void Dune::Fem::IntegralBase< GridPart, L1Norm< GridPart > >::normLocal ( const EntityType entity,
unsigned int  order,
const LocalFunctionType &  uLocal,
ReturnType &  sum 
) const
inlineprotectedinherited

◆ normLocal() [2/2]

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

Member Data Documentation

◆ communicate_

template<class GridPart >
const bool Dune::Fem::L1Norm< GridPart >::communicate_
protected

◆ order_

template<class GridPart >
const unsigned int Dune::Fem::L1Norm< GridPart >::order_
protected

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