From: guido Date: Wed, 17 Oct 2001 08:13:31 +0000 (+0000) Subject: functions for BlockMatrixArray added X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6893d705ae3f92bca7afa300d30dbfc7397d1cdb;p=dealii-svn.git functions for BlockMatrixArray added git-svn-id: https://svn.dealii.org/trunk@5153 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/precondition.h b/deal.II/lac/include/lac/precondition.h index 489c4a5ec8..966cd0b972 100644 --- a/deal.II/lac/include/lac/precondition.h +++ b/deal.II/lac/include/lac/precondition.h @@ -48,6 +48,21 @@ class PreconditionIdentity : public Subscriptor */ template void Tvmult (VECTOR&, const VECTOR&) const; + /** + * Apply preconditioner, adding to the previous value. + */ + template + void vmult_add (VECTOR&, const VECTOR&) const; + + /** + * Apply transpose + * preconditioner, adding. Since this is + * the identity, this function is + * the same as + * @ref{vmult}. + */ + template + void Tvmult_add (VECTOR&, const VECTOR&) const; }; @@ -494,6 +509,22 @@ PreconditionIdentity::Tvmult (VECTOR& dst, const VECTOR& src) const dst = src; } +template +inline void +PreconditionIdentity::vmult_add (VECTOR& dst, const VECTOR& src) const +{ + dst.add(src); +} + + + +template +inline void +PreconditionIdentity::Tvmult_add (VECTOR& dst, const VECTOR& src) const +{ + dst.add(src); +} + //----------------------------------------------------------------------// template