]> https://gitweb.dealii.org/ - dealii.git/commitdiff
functions for BlockMatrixArray added
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 17 Oct 2001 08:13:31 +0000 (08:13 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 17 Oct 2001 08:13:31 +0000 (08:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@5153 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/precondition.h

index 489c4a5ec8d11e762f1bacaee911d1da73264dc9..966cd0b9720e7cb7fb479eb7aa97383cd32c78cf 100644 (file)
@@ -48,6 +48,21 @@ class PreconditionIdentity : public Subscriptor
                                      */
     template<class VECTOR>
     void Tvmult (VECTOR&, const VECTOR&) const;
+                                    /**
+                                     * Apply preconditioner, adding to the previous value.
+                                     */
+    template<class VECTOR>
+    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<class VECTOR>
+    void Tvmult_add (VECTOR&, const VECTOR&) const;
 };
 
 
@@ -494,6 +509,22 @@ PreconditionIdentity::Tvmult (VECTOR& dst, const VECTOR& src) const
   dst = src;
 }
 
+template<class VECTOR>
+inline void
+PreconditionIdentity::vmult_add (VECTOR& dst, const VECTOR& src) const
+{
+  dst.add(src);
+}
+
+
+
+template<class VECTOR>
+inline void
+PreconditionIdentity::Tvmult_add (VECTOR& dst, const VECTOR& src) const
+{
+  dst.add(src);
+}
+
 //----------------------------------------------------------------------//
 
 template <class MATRIX>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.