Public Member Functions | Private Member Functions | Private Attributes
MeshWorker::Assembler::MGMatrixSimple< MATRIX > Class Template Reference

List of all members.

Public Member Functions

 MGMatrixSimple (double threshold=1.e-12)
void initialize (MGLevelObject< MATRIX > &m)
void initialize (const MGConstrainedDoFs &mg_constrained_dofs)
void initialize_fluxes (MGLevelObject< MATRIX > &flux_up, MGLevelObject< MATRIX > &flux_down)
void initialize_interfaces (MGLevelObject< MATRIX > &interface_in, MGLevelObject< MATRIX > &interface_out)
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 (MATRIX &G, const FullMatrix< double > &M, const std::vector< unsigned int > &i1, const std::vector< unsigned int > &i2)
void assemble (MATRIX &G, const FullMatrix< double > &M, const std::vector< unsigned int > &i1, const std::vector< unsigned int > &i2, const unsigned int level)
void assemble_up (MATRIX &G, const FullMatrix< double > &M, const std::vector< unsigned int > &i1, const std::vector< unsigned int > &i2, const unsigned int level=-1)
void assemble_down (MATRIX &G, const FullMatrix< double > &M, const std::vector< unsigned int > &i1, const std::vector< unsigned int > &i2, const unsigned int level=-1)
void assemble_in (MATRIX &G, const FullMatrix< double > &M, const std::vector< unsigned int > &i1, const std::vector< unsigned int > &i2, const unsigned int level=-1)
void assemble_out (MATRIX &G, const FullMatrix< double > &M, const std::vector< unsigned int > &i1, const std::vector< unsigned int > &i2, const unsigned int level=-1)

Private Attributes

SmartPointer< MGLevelObject
< MATRIX >, MGMatrixSimple
< MATRIX > > 
matrix
SmartPointer< MGLevelObject
< MATRIX >, MGMatrixSimple
< MATRIX > > 
flux_up
SmartPointer< MGLevelObject
< MATRIX >, MGMatrixSimple
< MATRIX > > 
flux_down
SmartPointer< MGLevelObject
< MATRIX >, MGMatrixSimple
< MATRIX > > 
interface_in
SmartPointer< MGLevelObject
< MATRIX >, MGMatrixSimple
< MATRIX > > 
interface_out
SmartPointer< const
MGConstrainedDoFs,
MGMatrixSimple< MATRIX > > 
mg_constrained_dofs
const double threshold

Detailed Description

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

Assemble local matrices into level matrices without using block structure.

Todo:
The matrix structures needed for assembling level matrices with local refinement and continuous elements are missing.
Author:
Guido Kanschat, 2009

Constructor & Destructor Documentation

template<class MATRIX >
MeshWorker::Assembler::MGMatrixSimple< MATRIX >::MGMatrixSimple ( 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::MGMatrixSimple< MATRIX >::initialize ( MGLevelObject< MATRIX > &  m) [inline]

Store the result matrix for later assembling.

References LAPACKSupport::matrix.

template<class MATRIX >
void MeshWorker::Assembler::MGMatrixSimple< MATRIX >::initialize ( const MGConstrainedDoFs &  mg_constrained_dofs) [inline]

Initialize the multilevel constraints.

template<class MATRIX >
void MeshWorker::Assembler::MGMatrixSimple< MATRIX >::initialize_fluxes ( MGLevelObject< MATRIX > &  flux_up,
MGLevelObject< MATRIX > &  flux_down 
) [inline]

Initialize the matrices flux_up and flux_down used for local refinement with discontinuous Galerkin methods.

template<class MATRIX >
void MeshWorker::Assembler::MGMatrixSimple< MATRIX >::initialize_interfaces ( MGLevelObject< MATRIX > &  interface_in,
MGLevelObject< MATRIX > &  interface_out 
) [inline]

Initialize the matrices interface_in and interface_out used for local refinement with continuous Galerkin methods.

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

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

Assemble the matrix DoFInfo::M1[0] into the global matrix.

References internal::assemble(), and LAPACKSupport::matrix.

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

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

References internal::assemble(), Assert, StandardExceptions::ExcInternalError(), and LAPACKSupport::matrix.

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

Assemble a single matrix into a global matrix.

References AssertDimension, FullMatrix< number >::m(), and FullMatrix< number >::n().

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

Assemble a single matrix into a global matrix.

References AssertDimension, FullMatrix< number >::m(), and FullMatrix< number >::n().

template<class MATRIX >
void MeshWorker::Assembler::MGMatrixSimple< MATRIX >::assemble_up ( MATRIX &  G,
const FullMatrix< double > &  M,
const std::vector< unsigned int > &  i1,
const std::vector< unsigned int > &  i2,
const unsigned int  level = -1 
) [inline, private]

Assemble a single matrix into a global matrix.

References AssertDimension, FullMatrix< number >::m(), and FullMatrix< number >::n().

template<class MATRIX >
void MeshWorker::Assembler::MGMatrixSimple< MATRIX >::assemble_down ( MATRIX &  G,
const FullMatrix< double > &  M,
const std::vector< unsigned int > &  i1,
const std::vector< unsigned int > &  i2,
const unsigned int  level = -1 
) [inline, private]

Assemble a single matrix into a global matrix.

References AssertDimension, FullMatrix< number >::m(), and FullMatrix< number >::n().

template<class MATRIX >
void MeshWorker::Assembler::MGMatrixSimple< MATRIX >::assemble_in ( MATRIX &  G,
const FullMatrix< double > &  M,
const std::vector< unsigned int > &  i1,
const std::vector< unsigned int > &  i2,
const unsigned int  level = -1 
) [inline, private]

Assemble a single matrix into a global matrix.

References AssertDimension, FullMatrix< number >::m(), and FullMatrix< number >::n().

template<class MATRIX >
void MeshWorker::Assembler::MGMatrixSimple< MATRIX >::assemble_out ( MATRIX &  G,
const FullMatrix< double > &  M,
const std::vector< unsigned int > &  i1,
const std::vector< unsigned int > &  i2,
const unsigned int  level = -1 
) [inline, private]

Assemble a single matrix into a global matrix.

References AssertDimension, FullMatrix< number >::m(), and FullMatrix< number >::n().


Member Data Documentation

The global matrix being assembled.

The matrix used for face flux terms across the refinement edge, coupling coarse to fine.

The matrix used for face flux terms across the refinement edge, coupling fine to coarse.

The matrix used for face contributions for continuous elements across the refinement edge, coupling coarse to fine.

The matrix used for face contributions for continuous elements across the refinement edge, coupling fine to coarse.

A pointer to the object containing constraints.

template<class MATRIX>
const double MeshWorker::Assembler::MGMatrixSimple< 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