Public Types | Public Member Functions | Private Attributes

MeshWorker::Assembler::CellsAndFaces< number > Class Template Reference
[The MeshWorker interface]

List of all members.

Public Types

typedef NamedData< BlockVector
< number > * > 
DataVectors

Public Member Functions

void initialize (DataVectors &results, bool separate_faces=true)
template<class DOFINFO >
void initialize_info (DOFINFO &info, bool face) const
template<class DOFINFO >
void assemble (const DOFINFO &info)
template<class DOFINFO >
void assemble (const DOFINFO &info1, const DOFINFO &info2)
number operator() (unsigned int i) const

Private Attributes

DataVectors results
bool separate_faces

Detailed Description

template<typename number = double>
class MeshWorker::Assembler::CellsAndFaces< number >

Compute cell and face contributions of one or several functionals, typically for error estimates.

Author:
Guido Kanschat, 2009

Definition at line 101 of file functional.h.


Member Typedef Documentation

template<typename number = double>
typedef NamedData<BlockVector<number>*> MeshWorker::Assembler::CellsAndFaces< number >::DataVectors

The data type for communicating the cell and face vectors.

Definition at line 109 of file functional.h.


Member Function Documentation

template<typename number >
void MeshWorker::Assembler::CellsAndFaces< number >::initialize ( DataVectors results,
bool  separate_faces = true 
) [inline]

The initialization function, specifying the results vectors and whether face data should be collected separately.

results should contain two block vectors named "cells" and "faces" (the latter only if separate_faces is true). In each of the two, each block should have equal size and be large enough to accomodate all user indices set in the cells and faces covered by the loop it is used in. Typically, for estimators, this is Triangulation::n_active_cells() and Triangulation::n_faces(), respectively.

The use of BlockVector may seem cumbersome, but it allows us to assemble several functionals at the same time, one in each block. The typical situation for error estimate is just having a single block in each vector.

Definition at line 245 of file functional.h.

References Assert, AssertDimension, and NamedData< DATA >::name().

template<typename number >
template<class DOFINFO >
void MeshWorker::Assembler::CellsAndFaces< number >::initialize_info ( DOFINFO &  info,
bool  face 
) const [inline]

Initialize the local data in the DoFInfo object used later for assembling.

The info object refers to a cell if !face, or else to an interior or boundary face.

Definition at line 262 of file functional.h.

template<typename number >
template<class DOFINFO >
void MeshWorker::Assembler::CellsAndFaces< number >::assemble ( const DOFINFO &  info ) [inline]

Assemble the local values into the global vectors.

Definition at line 271 of file functional.h.

References numbers::invalid_unsigned_int.

template<typename number >
template<class DOFINFO >
void MeshWorker::Assembler::CellsAndFaces< number >::assemble ( const DOFINFO &  info1,
const DOFINFO &  info2 
) [inline]

Assemble both local values into the global vectors.

Definition at line 287 of file functional.h.

template<typename number = double>
number MeshWorker::Assembler::CellsAndFaces< number >::operator() ( unsigned int  i ) const

The value of the ith entry in results.


Member Data Documentation

template<typename number = double>
DataVectors MeshWorker::Assembler::CellsAndFaces< number >::results [private]

Definition at line 186 of file functional.h.

template<typename number = double>
bool MeshWorker::Assembler::CellsAndFaces< number >::separate_faces [private]

Definition at line 187 of file functional.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:15 by doxygen 1.7.2