LIMEX plugin
Loading...
Searching...
No Matches
ug::CompositeGridFunctionEstimator< TDomain, TAlgebra > Class Template Reference

Evaluate difference between two functions (w.r.t various norms). More...

#include <time_extrapolation.h>

Inheritance diagram for ug::CompositeGridFunctionEstimator< TDomain, TAlgebra >:
ug::ISubDiagErrorEst< TAlgebra::vector_type >

Public Types

typedef ISubDiagErrorEst< TVector > base_type
typedef GridFunction< TDomain, TAlgebra > grid_function_type
typedef IComponentSpace< grid_function_type > subspace_type
typedef CompositeSpace< grid_function_type > composite_type

Public Member Functions

void use_strict_relative_norms (int b)
void use_strict_relative_norms (bool b)
void add (SmartPtr< subspace_type > spSubspace)
void add (SmartPtr< composite_type > spCompositeSpace)
bool update (SmartPtr< TVector > vUpdate, number alpha, SmartPtr< TVector > vFine, SmartPtr< TVector > vCoarse)
 compute update vUpdate = vFine + alpha * (vFine- vCoarse) AND estimate error | alpha * (vFine- vCoarse)|
std::string config_string () const
 print config string
Public Member Functions inherited from ug::ISubDiagErrorEst< TAlgebra::vector_type >
number get_current_estimate ()
 get estimate
void reset_estimate ()

Protected Types

typedef TAlgebra::vector_type TVector

Protected Attributes

std::vector< SmartPtr< subspace_type > > m_spSubspaces
int m_strictRelativeError
Protected Attributes inherited from ug::ISubDiagErrorEst< TAlgebra::vector_type >
number m_est

Detailed Description

template<class TDomain, class TAlgebra>
class ug::CompositeGridFunctionEstimator< TDomain, TAlgebra >

Evaluate difference between two functions (w.r.t various norms).

| u |^2 = \sum |u|_i^2

Member Function Documentation

◆ config_string()

template<class TDomain, class TAlgebra>
std::string ug::CompositeGridFunctionEstimator< TDomain, TAlgebra >::config_string ( ) const
inlinevirtual

print config string

Reimplemented from ug::ISubDiagErrorEst< TAlgebra::vector_type >.

◆ update()

template<class TDomain, class TAlgebra>
bool ug::CompositeGridFunctionEstimator< TDomain, TAlgebra >::update ( SmartPtr< TVector > vUpdate,
number alpha2,
SmartPtr< TVector > vFine,
SmartPtr< TVector > vCoarse )
inlinevirtual

compute update vUpdate = vFine + alpha * (vFine- vCoarse) AND estimate error | alpha * (vFine- vCoarse)|

Implements ug::ISubDiagErrorEst< TAlgebra::vector_type >.


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