Public Member Functions | Private Attributes

MeshWorker::Assembler::ResidualSimple< VECTOR > Class Template Reference
[The MeshWorker interface]

Inheritance diagram for MeshWorker::Assembler::ResidualSimple< VECTOR >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void initialize (NamedData< VECTOR * > &results)
void initialize (const ConstraintMatrix &constraints)
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)

Private Attributes

NamedData< SmartPointer
< VECTOR, ResidualSimple
< VECTOR > > > 
residuals
SmartPointer< const
ConstraintMatrix,
ResidualSimple< VECTOR > > 
constraints

Detailed Description

template<class VECTOR>
class MeshWorker::Assembler::ResidualSimple< VECTOR >

Assemble residuals without block structure.

The data structure for this Assembler class is a simple vector on each cell with entries from zero to FiniteElementData::dofs_per_cell and a simple global vector with entries numbered from zero to DoFHandler::n_dofs(). No BlockInfo is required and the global vector may be any type of vector having element access through operator() (unsigned int)

Author:
Guido Kanschat, 2009

Definition at line 55 of file simple.h.


Member Function Documentation

template<class VECTOR >
void MeshWorker::Assembler::ResidualSimple< VECTOR >::initialize ( NamedData< VECTOR * > &  results ) [inline]
template<class VECTOR >
void MeshWorker::Assembler::ResidualSimple< VECTOR >::initialize ( const ConstraintMatrix constraints ) [inline]

Initialize the constraints.

Definition at line 497 of file simple.h.

template<class VECTOR >
template<class DOFINFO >
void MeshWorker::Assembler::ResidualSimple< VECTOR >::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.

Reimplemented in MeshWorker::Assembler::SystemSimple< MATRIX, VECTOR >.

Definition at line 506 of file simple.h.

Referenced by MeshWorker::Assembler::SystemSimple< MATRIX, VECTOR >::initialize_info().

template<class VECTOR >
template<class DOFINFO >
void MeshWorker::Assembler::ResidualSimple< VECTOR >::assemble ( const DOFINFO &  info ) [inline]

Assemble the local residuals into the global residuals.

Values are added to the previous contents. If constraints are active, ConstraintMatrix::distribute_local_to_global() is used.

Reimplemented in MeshWorker::Assembler::SystemSimple< MATRIX, VECTOR >.

Definition at line 515 of file simple.h.

Referenced by MeshWorker::Assembler::SystemSimple< MATRIX, VECTOR >::assemble().

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

Assemble both local residuals into the global residuals.

Reimplemented in MeshWorker::Assembler::SystemSimple< MATRIX, VECTOR >.

Definition at line 534 of file simple.h.


Member Data Documentation

template<class VECTOR>
NamedData<SmartPointer<VECTOR,ResidualSimple<VECTOR> > > MeshWorker::Assembler::ResidualSimple< VECTOR >::residuals [private]

The global residal vectors filled by assemble().

Definition at line 102 of file simple.h.

template<class VECTOR>
SmartPointer<const ConstraintMatrix,ResidualSimple<VECTOR> > MeshWorker::Assembler::ResidualSimple< VECTOR >::constraints [private]

A pointer to the object containing constraints.

Definition at line 106 of file simple.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