Public Member Functions | Private Member Functions | Private Attributes
MeshWorker::Assembler::MatrixSimple< MATRIX > Class Template Reference
Inheritance diagram for MeshWorker::Assembler::MatrixSimple< MATRIX >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MatrixSimple (double threshold=1.e-12)
void initialize (MATRIX &m)
void initialize (const ConstraintMatrix &constraints)
template<class DOFINFO >
void initialize_info (DOFINFO &info, bool interior_face) const
template<class DOFINFO >
void assemble (const DOFINFO &info)
template<class DOFINFO >
void assemble (const DOFINFO &info1, const DOFINFO &info2)

Private Member Functions

void assemble (const FullMatrix< double > &M, const std::vector< unsigned int > &i1, const std::vector< unsigned int > &i2)

Private Attributes

SmartPointer< MATRIX,
MatrixSimple< MATRIX > > 
matrix
SmartPointer< const
ConstraintMatrix, MatrixSimple
< MATRIX > > 
constraints
const double threshold

Detailed Description

template<class MATRIX>
class MeshWorker::Assembler::MatrixSimple< MATRIX >

Assemble local matrices into a single global matrix without using block structure.

After being initialized with a SparseMatrix object (or another matrix offering the same functionality as SparseMatrix::add()), this class can be used in a MeshWorker::loop() to assemble the cell and face matrices into the global matrix.

Todo:
On locally refined meshes, a ConstraintMatrix should be used to automatically eliminate hanging nodes.
Author:
Guido Kanschat, 2009

Constructor & Destructor Documentation

template<class MATRIX >
MeshWorker::Assembler::MatrixSimple< MATRIX >::MatrixSimple ( double  threshold = 1.e-12) [inline]

Constructor, initializing the threshold, which limits how small numbers may be to be entered into the matrix.


Member Function Documentation

template<class MATRIX >
void MeshWorker::Assembler::MatrixSimple< MATRIX >::initialize ( MATRIX &  m) [inline]

Store the result matrix for later assembling.

References LAPACKSupport::matrix.

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

template<class MATRIX >
void MeshWorker::Assembler::MatrixSimple< MATRIX >::initialize ( const ConstraintMatrix &  constraints) [inline]

Initialize the constraints.

template<class MATRIX >
template<class DOFINFO >
void MeshWorker::Assembler::MatrixSimple< MATRIX >::initialize_info ( DOFINFO &  info,
bool  interior_face 
) const [inline]

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

The second parameter is used to distinguish between the data used on cells and boundary faces on the one hand and interior faces on the other. Interior faces may require additional data being initialized.

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

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

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

Assemble both local matrices in the info objects into the global matrix.

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

References internal::assemble().

template<class MATRIX >
void MeshWorker::Assembler::MatrixSimple< MATRIX >::assemble ( const FullMatrix< double > &  M,
const std::vector< unsigned int > &  i1,
const std::vector< unsigned int > &  i2 
) [inline, private]

Member Data Documentation

The global matrix being assembled.

A pointer to the object containing constraints.

template<class MATRIX>
const double MeshWorker::Assembler::MatrixSimple< MATRIX >::threshold [private]

The smallest positive number that will be entered into the global matrix. All smaller absolute values will be treated as zero and will not be assembled.


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

deal.II documentation generated on Fri Aug 12 2011 15:01:09 by doxygen 1.7.4