DOpE
Public Member Functions | Protected Member Functions
DOpE::ProblemContainerInternal< PDE > Class Template Reference

#include <problemcontainer_internal.h>

Inheritance diagram for DOpE::ProblemContainerInternal< PDE >:
DOpE::OptProblemContainer< FUNCTIONAL_INTERFACE, FUNCTIONAL, PDE, DD, CONSTRAINTS, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH > DOpE::PDEProblemContainer< PDE, DD, SPARSITYPATTERN, VECTOR, dealdim, FE, DH > DOpE::InstatOptProblemContainer< PRIMALTSPROBLEM, ADJOINTTSPROBLEM, FUNCTIONAL_INTERFACE, FUNCTIONAL, PDE, DD, CONSTRAINTS, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >

Public Member Functions

 ProblemContainerInternal (PDE &pde)
 
template<class EDC , class DWRC >
void ElementErrorContribution (const EDC &edc, const DWRC &dwrc, std::vector< double > &element_contrib, double scale)
 
template<class FDC , class DWRC >
void FaceErrorContribution (const FDC &fdc, const DWRC &dwrc, std::vector< double > &error_contrib, double scale=1.)
 
template<class FDC , class DWRC >
void BoundaryErrorContribution (const FDC &dc, const DWRC &dwrc, std::vector< double > &, double scale=1.)
 
const PDE & GetPDE () const
 
std::string GetType () const
 
unsigned int GetTypeNum () const
 

Protected Member Functions

PDE & GetPDE ()
 
void SetTypeInternal (std::string a)
 
void SetTypeNumInternal (unsigned int i)
 

Detailed Description

template<class PDE>
class DOpE::ProblemContainerInternal< PDE >

This class houses some functions and variables common in pdeproblemcontainer.h and optproblemcontainer.h. Both classes are derived from this one. With this, we prevent code duplicity.

Constructor & Destructor Documentation

template<class PDE >
DOpE::ProblemContainerInternal< PDE >::ProblemContainerInternal ( PDE &  pde)
inline

Member Function Documentation

template<typename PDE >
template<class FDC , class DWRC >
void DOpE::ProblemContainerInternal< PDE >::BoundaryErrorContribution ( const FDC &  dc,
const DWRC &  dwrc,
std::vector< double > &  error,
double  scale = 1. 
)

Computes the contribution of the boundary to overall error in a previously specified functional.

It has the same functionality as ElementErrorContribution, so we refer to its documentation.

template<typename PDE >
template<class EDC , class DWRC >
void DOpE::ProblemContainerInternal< PDE >::ElementErrorContribution ( const EDC &  edc,
const DWRC &  dwrc,
std::vector< double > &  element_contrib,
double  scale 
)

Computes the contribution of the element to overall error in a previously specified functional. For example, this could be a residual with appropriate weights.

EDC Class of the elementdatacontainer in use, distinguishes between hp- and classical case. FDC Class of the facedatacontainer in use, distinguishes between hp- and classical case.

Parameters
edcA DataContainer holding all the needed information for the computation of the residuum on the element.
dwrcA DWRDataContainer containing all the information needed to evaluate the error on the element (form of the residual, the weights, etc.).
element_contribVector in which we write the contribution of the element to the overall error. 1st component: primal_part, 2nd component: dual_part
scaleA scaling factor which is -1 or 1 depending on the subroutine to compute.
template<typename PDE >
template<class FDC , class DWRC >
void DOpE::ProblemContainerInternal< PDE >::FaceErrorContribution ( const FDC &  fdc,
const DWRC &  dwrc,
std::vector< double > &  error_contrib,
double  scale = 1. 
)

Computes the contribution of the face to overall error in a previously specified functional. This is the place where for instance jump terms come into play.

It has the same functionality as ElementErrorContribution, so we refer to its documentation.

template<class PDE >
const PDE& DOpE::ProblemContainerInternal< PDE >::GetPDE ( ) const
inline
template<class PDE >
PDE& DOpE::ProblemContainerInternal< PDE >::GetPDE ( )
inlineprotected
template<class PDE >
std::string DOpE::ProblemContainerInternal< PDE >::GetType ( ) const
inline
template<class PDE >
unsigned int DOpE::ProblemContainerInternal< PDE >::GetTypeNum ( ) const
inline
template<class PDE >
void DOpE::ProblemContainerInternal< PDE >::SetTypeInternal ( std::string  a)
inlineprotected
template<class PDE >
void DOpE::ProblemContainerInternal< PDE >::SetTypeNumInternal ( unsigned int  i)
inlineprotected

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