From d3a96eab5fc6ad804fe589e997d761a88af21da0 Mon Sep 17 00:00:00 2001 From: guido Date: Mon, 10 Feb 2003 13:56:19 +0000 Subject: [PATCH] empty requirement for matrices removed git-svn-id: https://svn.dealii.org/trunk@7073 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/block_matrix_array.h | 4 ---- deal.II/lac/include/lac/pointer_matrix.h | 22 -------------------- 2 files changed, 26 deletions(-) diff --git a/deal.II/lac/include/lac/block_matrix_array.h b/deal.II/lac/include/lac/block_matrix_array.h index 45ca51586d..840f57458b 100644 --- a/deal.II/lac/include/lac/block_matrix_array.h +++ b/deal.II/lac/include/lac/block_matrix_array.h @@ -388,8 +388,6 @@ BlockMatrixArray::vmult_add (BlockVector& dst, for (; m != end ; ++m) { - if (m->matrix->empty()) - continue; if (m->prefix==1.) { if (m->transpose) @@ -447,8 +445,6 @@ BlockMatrixArray::Tvmult_add (BlockVector& dst, for (; m != end ; ++m) { - if (m->matrix->empty()) - continue; if (m->prefix==1.) { if (m->transpose) diff --git a/deal.II/lac/include/lac/pointer_matrix.h b/deal.II/lac/include/lac/pointer_matrix.h index 4187cfe154..2d8b5eb42c 100644 --- a/deal.II/lac/include/lac/pointer_matrix.h +++ b/deal.II/lac/include/lac/pointer_matrix.h @@ -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::operator= (const MATRIX* M) return *this; } -template -inline bool -PointerMatrix::empty () const -{ - if (m == 0) - return true; - return m->empty(); -} - template inline void PointerMatrix::vmult (VECTOR& dst, -- 2.39.5