From: Guido Kanschat Date: Tue, 29 Mar 2005 23:57:59 +0000 (+0000) Subject: Make enter function in preconditioner accessible X-Git-Tag: v8.0.0~14228 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69d7c309167b9a4bc636c2a22614401d7ff0a4b3;p=dealii.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