ug4
ug::IMultigridElementIndicators< TDomain > Class Template Reference

This class encapsulates the multi-grid attachments for error estimation. More...

#include <error_elem_marking_strategy.h>

Public Types

typedef MultiGrid::AttachmentAccessor< elem_type, error_attachment_typeattachment_accessor_type
 
typedef domain_traits< dim >::element_type elem_type
 
typedef Attachment< numbererror_attachment_type
 

Public Member Functions

void attach_indicators (SmartPtr< MultiGrid > pMG)
 Attach error indicator to multigrid. More...
 
void detach_indicators ()
 Detach error indicator from multigrid. More...
 
numbererror (typename attachment_accessor_type::atraits::ConstElemPtr pElem)
 returns error indicator value More...
 
const numbererror (typename attachment_accessor_type::atraits::ConstElemPtr pElem) const
 returns error indicator value More...
 
attachment_accessor_typeerrors ()
 
 IMultigridElementIndicators ()
 CTOR. More...
 
 ~IMultigridElementIndicators ()
 DTOR. More...
 

Static Public Attributes

static const int dim = TDomain::dim
 world dimension More...
 

Protected Attributes

attachment_accessor_type m_aaError
 
error_attachment_type m_aError
 
SmartPtr< MultiGridm_pMG
 

Friends

class IElementMarkingStrategy< TDomain >
 

Detailed Description

template<typename TDomain>
class ug::IMultigridElementIndicators< TDomain >

This class encapsulates the multi-grid attachments for error estimation.

Purpose: replaces direct access to 'm_aaError' etc.

Member Typedef Documentation

◆ attachment_accessor_type

◆ elem_type

template<typename TDomain >
typedef domain_traits<dim>::element_type ug::IMultigridElementIndicators< TDomain >::elem_type

◆ error_attachment_type

template<typename TDomain >
typedef Attachment<number> ug::IMultigridElementIndicators< TDomain >::error_attachment_type

Constructor & Destructor Documentation

◆ IMultigridElementIndicators()

template<typename TDomain >
ug::IMultigridElementIndicators< TDomain >::IMultigridElementIndicators ( )
inline

CTOR.

◆ ~IMultigridElementIndicators()

Member Function Documentation

◆ attach_indicators()

template<typename TDomain >
void ug::IMultigridElementIndicators< TDomain >::attach_indicators ( SmartPtr< MultiGrid pMG)
inline

◆ detach_indicators()

◆ error() [1/2]

template<typename TDomain >
number& ug::IMultigridElementIndicators< TDomain >::error ( typename attachment_accessor_type::atraits::ConstElemPtr  pElem)
inline

returns error indicator value

References ug::IMultigridElementIndicators< TDomain >::m_aaError.

◆ error() [2/2]

template<typename TDomain >
const number& ug::IMultigridElementIndicators< TDomain >::error ( typename attachment_accessor_type::atraits::ConstElemPtr  pElem) const
inline

returns error indicator value

References ug::IMultigridElementIndicators< TDomain >::m_aaError.

◆ errors()

template<typename TDomain >
attachment_accessor_type& ug::IMultigridElementIndicators< TDomain >::errors ( )
inline

TODO: remove this function (mbreit: no, please leave it, it is very useful, at least with const access)

References ug::IMultigridElementIndicators< TDomain >::m_aaError.

Referenced by ug::IElementMarkingStrategy< TDomain >::mark().

Friends And Related Function Documentation

◆ IElementMarkingStrategy< TDomain >

template<typename TDomain >
friend class IElementMarkingStrategy< TDomain >
friend

Member Data Documentation

◆ dim

template<typename TDomain >
const int ug::IMultigridElementIndicators< TDomain >::dim = TDomain::dim
static

world dimension

◆ m_aaError

◆ m_aError

◆ m_pMG


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