From: guido Date: Tue, 29 Mar 2005 23:57:59 +0000 (+0000) Subject: Make enter function in preconditioner accessible X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d90e8900f146816a9cdabfa749a1e84d477278b;p=dealii-svn.git Make enter function in preconditioner accessible git-svn-id: https://svn.dealii.org/trunk@10319 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/block_matrix_array.h b/deal.II/lac/include/lac/block_matrix_array.h index e92e32000b..25e2e0e4f0 100644 --- a/deal.II/lac/include/lac/block_matrix_array.h +++ b/deal.II/lac/include/lac/block_matrix_array.h @@ -424,7 +424,20 @@ class BlockTrianglePrecondition BlockTrianglePrecondition(unsigned int block_rows, VectorMemory >& mem, bool backward = false); - + /** + * Enter a block. This calls + * BlockMatrixArray::enter(). Remember + * that the diagonal blocks + * should actually be inverse + * matrices or preconditioners. + */ + template + void enter (const MATRIX &matrix, + const unsigned int row, + const unsigned int col, + const double prefix = 1., + const bool transpose = false); + /** * Resize preconditioner to a new * size and clear all blocks. @@ -626,6 +639,18 @@ BlockMatrixArray::print_latex (STREAM& out) const out << "\\end{array}" << std::endl; } +template +template +inline +void +BlockTrianglePrecondition::enter (const MATRIX& matrix, + unsigned row, unsigned int col, + double prefix, bool transpose) +{ + BlockMatrixArray::enter(matrix, row, col, prefix, transpose); +} + + ///@endif