
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 |
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.
| 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.
| 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().
| void MeshWorker::Assembler::MatrixSimple< MATRIX >::initialize | ( | const ConstraintMatrix & | constraints | ) | [inline] |
Initialize the constraints.
| 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().
| void MeshWorker::Assembler::MatrixSimple< MATRIX >::assemble | ( | const DOFINFO & | info | ) | [inline] |
Assemble the matrix DoFInfo::M1[0] into the global matrix.
Reimplemented in MeshWorker::Assembler::SystemSimple< MATRIX, VECTOR >.
References internal::assemble().
Referenced by MeshWorker::Assembler::SystemSimple< MATRIX, VECTOR >::assemble().
| 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().
| void MeshWorker::Assembler::MatrixSimple< MATRIX >::assemble | ( | const FullMatrix< double > & | M, |
| const std::vector< unsigned int > & | i1, | ||
| const std::vector< unsigned int > & | i2 | ||
| ) | [inline, private] |
Assemble a single matrix into matrix.
References AssertDimension, FullMatrix< number >::m(), LAPACKSupport::matrix, and FullMatrix< number >::n().
SmartPointer<MATRIX,MatrixSimple<MATRIX> > MeshWorker::Assembler::MatrixSimple< MATRIX >::matrix [private] |
The global matrix being assembled.
SmartPointer<const ConstraintMatrix,MatrixSimple<MATRIX> > MeshWorker::Assembler::MatrixSimple< MATRIX >::constraints [private] |
A pointer to the object containing constraints.
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.
documentation generated on Fri Aug 12 2011 15:01:09 by
doxygen
1.7.4