ug4
ug::L2DistIntegrand< TGridFunction > Class Template Reference

Integrand for the distance of two grid functions - evaluated in the (weighted) H1-semi norm. More...

#include <integrate.h>

+ Inheritance diagram for ug::L2DistIntegrand< TGridFunction >:

Public Types

typedef L2Integrand< TGridFunction >::weight_type weight_type
 
- Public Types inherited from ug::StdIntegrand< number, TGridFunction::dim, L2DistIntegrand< TGridFunction > >
typedef number data_type
 data type More...
 
- Public Types inherited from ug::IIntegrand< TData, TWorldDim >
typedef TData data_type
 data type More...
 

Public Member Functions

template<int elemDim>
void evaluate (number vValue[], const MathVector< worldDim > vFineGlobIP[], GridObject *pFineElem, const MathVector< worldDim > vCornerCoords[], const MathVector< elemDim > vFineLocIP[], const MathMatrix< elemDim, worldDim > vJT[], const size_t numIP)
 returns the values of the integrand for a bunch of ips More...
 
 L2DistIntegrand (TGridFunction &fineGridFct, size_t fineCmp, TGridFunction &coarseGridFct, size_t coarseCmp)
 constructor (1st is fine grid function) More...
 
 L2DistIntegrand (TGridFunction &fineGridFct, size_t fineCmp, TGridFunction &coarseGridFct, size_t coarseCmp, ConstSmartPtr< weight_type > spWeight)
 constructor (1st is fine grid function) More...
 
 L2DistIntegrand (TGridFunction &fineGridFct, size_t fineCmp, TGridFunction &coarseGridFct, size_t coarseCmp, ConstSmartPtr< weight_type > spWeight, number dist12)
 constructor (1st is fine grid function) More...
 
virtual void set_subset (int si)
 sets subset More...
 
virtual ~L2DistIntegrand ()
 
- Public Member Functions inherited from ug::StdIntegrand< number, TGridFunction::dim, L2DistIntegrand< TGridFunction > >
virtual void values (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 1 > vLocIP[], const MathMatrix< 1, worldDim > vJT[], const size_t numIP)
 
virtual void values (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 2 > vLocIP[], const MathMatrix< 2, worldDim > vJT[], const size_t numIP)
 
virtual void values (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 3 > vLocIP[], const MathMatrix< 3, worldDim > vJT[], const size_t numIP)
 
- Public Member Functions inherited from ug::IIntegrand< TData, TWorldDim >
int subset () const
 returns the subset More...
 
virtual ~IIntegrand ()
 
virtual void values (TData vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 1 > vLocIP[], const MathMatrix< 1, worldDim > vJT[], const size_t numIP)=0
 returns the values of the integrand for a bunch of ips More...
 
virtual void values (TData vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 2 > vLocIP[], const MathMatrix< 2, worldDim > vJT[], const size_t numIP)=0
 returns the values of the integrand for a bunch of ips More...
 
virtual void values (TData vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 3 > vLocIP[], const MathMatrix< 3, worldDim > vJT[], const size_t numIP)=0
 returns the values of the integrand for a bunch of ips More...
 

Static Public Attributes

static const int worldDim = TGridFunction::dim
 world dimension of grid function More...
 
- Static Public Attributes inherited from ug::StdIntegrand< number, TGridFunction::dim, L2DistIntegrand< TGridFunction > >
static const int worldDim
 world dimension More...
 
- Static Public Attributes inherited from ug::IIntegrand< TData, TWorldDim >
static const int worldDim = TWorldDim
 world dimension More...
 

Protected Attributes

ScalarGridFunctionData< TGridFunction > m_coarseData
 
const int m_coarseTopLevel
 
double m_deltaFineCoarse
 shift More...
 
ScalarGridFunctionData< TGridFunction > m_fineData
 
const int m_fineTopLevel
 
SmartPtr< MultiGridm_spMG
 multigrid More...
 
ConstSmartPtr< weight_typem_spWeight
 
- Protected Attributes inherited from ug::IIntegrand< TData, TWorldDim >
int m_si
 subset More...
 

Additional Inherited Members

- Protected Member Functions inherited from ug::StdIntegrand< number, TGridFunction::dim, L2DistIntegrand< TGridFunction > >
L2DistIntegrand< TGridFunction > & getImpl ()
 access to implementation More...
 
const L2DistIntegrand< TGridFunction > & getImpl () const
 const access to implementation More...
 

Detailed Description

template<typename TGridFunction>
class ug::L2DistIntegrand< TGridFunction >

Integrand for the distance of two grid functions - evaluated in the (weighted) H1-semi norm.

Member Typedef Documentation

◆ weight_type

template<typename TGridFunction >
typedef L2Integrand<TGridFunction>::weight_type ug::L2DistIntegrand< TGridFunction >::weight_type

Constructor & Destructor Documentation

◆ L2DistIntegrand() [1/3]

template<typename TGridFunction >
ug::L2DistIntegrand< TGridFunction >::L2DistIntegrand ( TGridFunction &  fineGridFct,
size_t  fineCmp,
TGridFunction &  coarseGridFct,
size_t  coarseCmp 
)
inline

◆ L2DistIntegrand() [2/3]

template<typename TGridFunction >
ug::L2DistIntegrand< TGridFunction >::L2DistIntegrand ( TGridFunction &  fineGridFct,
size_t  fineCmp,
TGridFunction &  coarseGridFct,
size_t  coarseCmp,
ConstSmartPtr< weight_type spWeight 
)
inline

◆ L2DistIntegrand() [3/3]

template<typename TGridFunction >
ug::L2DistIntegrand< TGridFunction >::L2DistIntegrand ( TGridFunction &  fineGridFct,
size_t  fineCmp,
TGridFunction &  coarseGridFct,
size_t  coarseCmp,
ConstSmartPtr< weight_type spWeight,
number  dist12 
)
inline

◆ ~L2DistIntegrand()

template<typename TGridFunction >
virtual ug::L2DistIntegrand< TGridFunction >::~L2DistIntegrand ( )
inlinevirtual

Member Function Documentation

◆ evaluate()

template<typename TGridFunction >
template<int elemDim>
void ug::L2DistIntegrand< TGridFunction >::evaluate ( number  vValue[],
const MathVector< worldDim vFineGlobIP[],
GridObject pFineElem,
const MathVector< worldDim vCornerCoords[],
const MathVector< elemDim >  vFineLocIP[],
const MathMatrix< elemDim, worldDim vJT[],
const size_t  numIP 
)
inline

◆ set_subset()

template<typename TGridFunction >
virtual void ug::L2DistIntegrand< TGridFunction >::set_subset ( int  si)
inlinevirtual

Member Data Documentation

◆ m_coarseData

◆ m_coarseTopLevel

template<typename TGridFunction >
const int ug::L2DistIntegrand< TGridFunction >::m_coarseTopLevel
protected

◆ m_deltaFineCoarse

template<typename TGridFunction >
double ug::L2DistIntegrand< TGridFunction >::m_deltaFineCoarse
protected

◆ m_fineData

◆ m_fineTopLevel

template<typename TGridFunction >
const int ug::L2DistIntegrand< TGridFunction >::m_fineTopLevel
protected

◆ m_spMG

template<typename TGridFunction >
SmartPtr<MultiGrid> ug::L2DistIntegrand< TGridFunction >::m_spMG
protected

◆ m_spWeight

template<typename TGridFunction >
ConstSmartPtr<weight_type> ug::L2DistIntegrand< TGridFunction >::m_spWeight
protected

◆ worldDim

template<typename TGridFunction >
const int ug::L2DistIntegrand< TGridFunction >::worldDim = TGridFunction::dim
static

world dimension of grid function


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