]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
empty requirement for matrices removed
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Feb 2003 13:56:19 +0000 (13:56 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Feb 2003 13:56:19 +0000 (13:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@7073 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_matrix_array.h
deal.II/lac/include/lac/pointer_matrix.h

index 45ca51586d8cf74486aa82f1e6779d0e2a53b463..840f57458b5c9f554e08371b9b04a2d31a1373ef 100644 (file)
@@ -388,8 +388,6 @@ BlockMatrixArray<MATRIX>::vmult_add (BlockVector<number>& dst,
   
   for (; m != end ; ++m)
     {
-      if (m->matrix->empty())
-       continue;
       if (m->prefix==1.)
        {
          if (m->transpose)
@@ -447,8 +445,6 @@ BlockMatrixArray<MATRIX>::Tvmult_add (BlockVector<number>& dst,
   
   for (; m != end ; ++m)
     {
-      if (m->matrix->empty())
-       continue;
       if (m->prefix==1.)
        {
          if (m->transpose)
index 4187cfe154b04d2360531b4a921ba506d255b316..2d8b5eb42c58c53e1a977c3497e1b671ade3ec0c 100644 (file)
@@ -43,12 +43,6 @@ class PointerMatrixBase : public Subscriptor
                                      */
   virtual ~PointerMatrixBase ();
 
-                                  /**
-                                   * Check if pointer is zero or
-                                   * matrix is empty.
-                                   */
-  virtual bool empty () const = 0;
-  
                                   /**
                                    * Matrix-vector product.
                                    */
@@ -108,13 +102,6 @@ public:
                                    * @see SmartPointer
                                    */
   const PointerMatrix& operator= (const MATRIX* M);
-
-                                  /**
-                                   * Check if pointer is zero or
-                                   * matrix is empty.
-                                   */
-  virtual bool empty () const;
-  
   
                                   /**
                                    * Matrix-vector product.
@@ -172,15 +159,6 @@ PointerMatrix<MATRIX, VECTOR>::operator= (const MATRIX* M)
   return *this;
 }
 
-template<class MATRIX, class VECTOR>
-inline bool
-PointerMatrix<MATRIX, VECTOR>::empty () const
-{
-  if (m == 0)
-    return true;
-  return m->empty();
-}
-
 template<class MATRIX, class VECTOR>
 inline void
 PointerMatrix<MATRIX, VECTOR>::vmult (VECTOR& dst,

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.