DOpE
Public Member Functions | Protected Member Functions
DOpE::L2ResidualErrorContainer< STH, VECTOR, dim > Class Template Reference

#include <residualestimator.h>

Inheritance diagram for DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >:
DOpE::ResidualErrorContainer< VECTOR > DOpE::DWRDataContainerBase< VECTOR >

Public Member Functions

 L2ResidualErrorContainer (STH &sth, DOpEtypes::VectorStorageType state_behavior, ParameterReader &param_reader, DOpEtypes::EETerms ee_terms=DOpEtypes::EETerms::mixed)
 
virtual ~L2ResidualErrorContainer ()
 
std::string GetName () const
 
void Initialize (unsigned int state_n_blocks, std::vector< unsigned int > &state_block_component)
 
void ReInit (unsigned int n_elements)
 
StateVector< VECTOR > & GetPI_h_u ()
 
StateVector< VECTOR > & GetPI_h_z ()
 
ControlVector< VECTOR > & GetPI_h_q ()
 
void PreparePI_h_u (const StateVector< VECTOR > &)
 
void PreparePI_h_z (const StateVector< VECTOR > &)
 
void PreparePI_h_q (const ControlVector< VECTOR > &)
 
bool NeedDual () const
 
virtual
DOpEtypes::WeightComputation 
GetWeightComputation () const
 
virtual
DOpEtypes::ResidualEvaluation 
GetResidualEvaluation () const
 
void ResidualModifier (double &res)
 
void VectorResidualModifier (dealii::Vector< double > &res)
 
void InitFace (double h)
 
void InitElement (double h)
 
- Public Member Functions inherited from DOpE::ResidualErrorContainer< VECTOR >
 ResidualErrorContainer (DOpEtypes::EETerms ee_terms=DOpEtypes::EETerms::mixed)
 
- Public Member Functions inherited from DOpE::DWRDataContainerBase< VECTOR >
 DWRDataContainerBase (DOpEtypes::EETerms ee_terms=DOpEtypes::EETerms::mixed)
 
virtual ~DWRDataContainerBase ()
 
void ReleaseLock ()
 
double GetError () const
 
double GetPrimalError () const
 
double GetDualError () const
 
double GetControlError () const
 
const Vector< double > & GetErrorIndicators () const
 
Vector< double > & GetPrimalErrorIndicators ()
 
const Vector< double > & GetPrimalErrorIndicators () const
 
Vector< double > & GetDualErrorIndicators ()
 
const Vector< double > & GetDualErrorIndicators () const
 
Vector< double > & GetControlErrorIndicators ()
 
const Vector< double > & GetControlErrorIndicators () const
 
Vector< double > & GetErrorIndicators (unsigned int i)
 
const Vector< double > & GetErrorIndicators (unsigned int i) const
 
unsigned int GetNErrorComps () const
 
std::vector< const Vector
< double > * > 
GetAllErrorIndicators () const
 
DOpEtypes::EETerms GetEETerms () const
 
template<class PROBLEM , class INTEGRATOR >
void ComputeRefinementIndicators (PROBLEM &problem, INTEGRATOR &integrator)
 
const std::map< std::string,
const VECTOR * > & 
GetWeightData () const
 
void ClearWeightData ()
 
void PrepareWeights (const StateVector< VECTOR > &u, const StateVector< VECTOR > &z)
 
void PrepareWeights (const ControlVector< VECTOR > &q)
 

Protected Member Functions

STH & GetSTH ()
 
template<template< int, int > class DH>
void BuildConstantWeight (const DOpEWrapper::DoFHandler< dim, DH > *dofh, VECTOR &vals)
 
- Protected Member Functions inherited from DOpE::DWRDataContainerBase< VECTOR >
void AddWeightData (std::string name, const VECTOR *new_data)
 

Detailed Description

template<class STH, typename VECTOR, int dim>
class DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >

This class implements the missing pieces of DWRDataContainer for the case of the computation of a standard L2-residual error estimator. Although, technicaly this is not dual weighted!

Constructor & Destructor Documentation

template<class STH , typename VECTOR , int dim>
DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::L2ResidualErrorContainer ( STH &  sth,
DOpEtypes::VectorStorageType  state_behavior,
ParameterReader param_reader,
DOpEtypes::EETerms  ee_terms = DOpEtypes::EETerms::mixed 
)
inline
template<class STH , typename VECTOR , int dim>
virtual DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::~L2ResidualErrorContainer ( )
inlinevirtual

Member Function Documentation

template<class STH , typename VECTOR , int dim>
template<template< int, int > class DH>
void DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::BuildConstantWeight ( const DOpEWrapper::DoFHandler< dim, DH > *  dofh,
VECTOR &  vals 
)
inlineprotected
template<class STH , typename VECTOR , int dim>
std::string DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::GetName ( ) const
inlinevirtual
template<class STH , typename VECTOR , int dim>
ControlVector<VECTOR>& DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::GetPI_h_q ( )
inlinevirtual
template<class STH , typename VECTOR , int dim>
StateVector<VECTOR>& DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::GetPI_h_u ( )
inlinevirtual
template<class STH , typename VECTOR , int dim>
StateVector<VECTOR>& DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::GetPI_h_z ( )
inlinevirtual
template<class STH , typename VECTOR , int dim>
virtual DOpEtypes::ResidualEvaluation DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::GetResidualEvaluation ( ) const
inlinevirtual

Implementation of virtual method from base class.

Implements DOpE::DWRDataContainerBase< VECTOR >.

template<class STH , typename VECTOR , int dim>
STH& DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::GetSTH ( )
inlineprotected
template<class STH , typename VECTOR , int dim>
virtual DOpEtypes::WeightComputation DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::GetWeightComputation ( ) const
inlinevirtual

Implementation of virtual method from base class.

Implements DOpE::DWRDataContainerBase< VECTOR >.

template<class STH , typename VECTOR , int dim>
void DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::InitElement ( double  h)
inlinevirtual
template<class STH , typename VECTOR , int dim>
void DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::InitFace ( double  h)
inlinevirtual
template<class STH , typename VECTOR , int dim>
void DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::Initialize ( unsigned int  state_n_blocks,
std::vector< unsigned int > &  state_block_component 
)
inline
template<class STH , typename VECTOR , int dim>
bool DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::NeedDual ( ) const
inlinevirtual

Implementation of virtual method from base class.

Implements DOpE::DWRDataContainerBase< VECTOR >.

template<class STH , typename VECTOR , int dim>
void DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::PreparePI_h_q ( const ControlVector< VECTOR > &  )
inlinevirtual

Makes the patchwise higher order interpolant of the control q. This is needed as a weight for the control residual.

Implements DOpE::DWRDataContainerBase< VECTOR >.

template<class STH , typename VECTOR , int dim>
void DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::PreparePI_h_u ( const StateVector< VECTOR > &  )
inlinevirtual

Makes the patchwise higher order interpolant of the primal soltion u. This is needed as a weight for the dual residual.

Implements DOpE::DWRDataContainerBase< VECTOR >.

template<class STH , typename VECTOR , int dim>
void DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::PreparePI_h_z ( const StateVector< VECTOR > &  )
inlinevirtual

Makes the patchwise higher order interpolant of the dual solution z. This is needed as a weight for the primal residual.

Implements DOpE::DWRDataContainerBase< VECTOR >.

template<class STH , typename VECTOR , int dim>
void DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::ReInit ( unsigned int  n_elements)
virtual

ReInits the DWRDataContainer, the higher order STH as well as the weight-vectors.

Reimplemented from DOpE::DWRDataContainerBase< VECTOR >.

template<class STH , typename VECTOR , int dim>
void DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::ResidualModifier ( double &  res)
inline

This should be applied to the residual in the integration To assert that the squared norm is calculated

template<class STH , typename VECTOR , int dim>
void DOpE::L2ResidualErrorContainer< STH, VECTOR, dim >::VectorResidualModifier ( dealii::Vector< double > &  res)
inline

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