Amandus: Simulations based on multilevel Schwarz methods
Public Member Functions | Protected Attributes | Private Attributes | List of all members
ErrorIntegrator< dim > Class Template Reference

#include <integrator.h>

Inheritance diagram for ErrorIntegrator< dim >:
Inheritance graph
[legend]
Collaboration diagram for ErrorIntegrator< dim >:
Collaboration graph
[legend]

Public Member Functions

 ErrorIntegrator ()
 
 ErrorIntegrator (const dealii::Function< dim > &solution)
 
unsigned int size () const
 
void add (ErrorIntegrator< dim > *error_integrator)
 
void add (ErrorIntegrator< dim > *error_integrator, dealii::ComponentMask new_component_mask)
 
virtual void cell (dealii::MeshWorker::DoFInfo< dim > &dinfo, dealii::MeshWorker::IntegrationInfo< dim > &info) const
 
virtual void boundary (dealii::MeshWorker::DoFInfo< dim > &dinfo, dealii::MeshWorker::IntegrationInfo< dim > &info) const
 
virtual void face (dealii::MeshWorker::DoFInfo< dim > &dinfo1, dealii::MeshWorker::DoFInfo< dim > &dinfo2, dealii::MeshWorker::IntegrationInfo< dim > &info1, dealii::MeshWorker::IntegrationInfo< dim > &info2) const
 
- Public Member Functions inherited from AmandusIntegrator< dim >
 AmandusIntegrator ()
 
virtual void extract_data (const dealii::AnyData &data)
 Extract data independent of the cell. More...
 
unsigned int n_errors () const
 
unsigned int error_type (unsigned int i) const
 
std::string error_name (unsigned int i) const
 
dealii::UpdateFlags update_flags () const
 Returns the update flags to be used. More...
 
dealii::UpdateFlags update_flags_face () const
 Returns the update flags to be used on boundary and interior faces. More...
 
void add_flags (const dealii::UpdateFlags flags)
 Add update flags on all objects. More...
 
void add_flags_face (const dealii::UpdateFlags flags)
 Add update flags on boundary and internal faces. More...
 

Protected Attributes

dealii::ComponentMask component_mask
 
unsigned int block_idx
 
dealii::SmartPointer< const dealii::Function< dim > > solution
 
- Protected Attributes inherited from AmandusIntegrator< dim >
std::vector< unsigned int > error_types
 
std::vector< std::string > error_names
 

Private Attributes

std::vector< dealii::SmartPointer< ErrorIntegrator< dim > > > error_integrators
 

Additional Inherited Members

- Public Attributes inherited from AmandusIntegrator< dim >
double timestep
 Current timestep if applicable. More...
 
dealii::SmartPointer< dealii::Quadrature< dim > > cell_quadrature
 Quadrature rule used on cells. More...
 
dealii::SmartPointer< dealii::Quadrature< dim-1 > > boundary_quadrature
 Quadrature rule used on boundary faces. More...
 
dealii::SmartPointer< dealii::Quadrature< dim-1 > > face_quadrature
 Quadrature rule used on faces. More...
 

Detailed Description

template<int dim>
class ErrorIntegrator< dim >

A container for different error integrators. The elements of this container must be instances of specializations of this class.

Derived error integrators should calculate an error value between the exact solution provided by the solution member for the components indicated by the component_mask and store this value in the block_idx'th dinfo.value.

Constructor & Destructor Documentation

template<int dim>
ErrorIntegrator< dim >::ErrorIntegrator ( )
inline
template<int dim>
ErrorIntegrator< dim >::ErrorIntegrator ( const dealii::Function< dim > &  solution)
inline

Member Function Documentation

template<int dim>
void ErrorIntegrator< dim >::add ( ErrorIntegrator< dim > *  error_integrator)
inline
template<int dim>
void ErrorIntegrator< dim >::add ( ErrorIntegrator< dim > *  error_integrator,
dealii::ComponentMask  new_component_mask 
)
inline

Here is the call graph for this function:

template<int dim>
virtual void ErrorIntegrator< dim >::boundary ( dealii::MeshWorker::DoFInfo< dim > &  dinfo,
dealii::MeshWorker::IntegrationInfo< dim > &  info 
) const
inlinevirtual
template<int dim>
virtual void ErrorIntegrator< dim >::cell ( dealii::MeshWorker::DoFInfo< dim > &  dinfo,
dealii::MeshWorker::IntegrationInfo< dim > &  info 
) const
inlinevirtual
template<int dim>
virtual void ErrorIntegrator< dim >::face ( dealii::MeshWorker::DoFInfo< dim > &  dinfo1,
dealii::MeshWorker::DoFInfo< dim > &  dinfo2,
dealii::MeshWorker::IntegrationInfo< dim > &  info1,
dealii::MeshWorker::IntegrationInfo< dim > &  info2 
) const
inlinevirtual
template<int dim>
unsigned int ErrorIntegrator< dim >::size ( ) const
inline

Member Data Documentation

template<int dim>
unsigned int ErrorIntegrator< dim >::block_idx
protected
template<int dim>
dealii::ComponentMask ErrorIntegrator< dim >::component_mask
protected
template<int dim>
std::vector<dealii::SmartPointer<ErrorIntegrator<dim> > > ErrorIntegrator< dim >::error_integrators
private
template<int dim>
dealii::SmartPointer<const dealii::Function<dim> > ErrorIntegrator< dim >::solution
protected

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