]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
specific MGMatrix classes moved to mg_matrix.h
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 7 Jan 2003 11:49:38 +0000 (11:49 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 7 Jan 2003 11:49:38 +0000 (11:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@6880 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_base.h

index 1cfb583fd1d4d5077ecf2cae25334652937f6529..33ecc62f74880ef002f3248409bc6f9dd3fbfc67 100644 (file)
@@ -1,22 +1,19 @@
-//----------------------------  mg_base.h  ---------------------------
+//--------------------------------------------------------------------
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
 //    to the file deal.II/doc/license.html for the  text  and
 //    further information on this license.
 //
-//----------------------------  mg_base.h  ---------------------------
+//--------------------------------------------------------------------
 #ifndef __deal2__mg_base_h
 #define __deal2__mg_base_h
 
 
-/*----------------------------   mgbase.h     ---------------------------*/
-
-
 #include <base/config.h>
 #include <base/subscriptor.h>
 #include <base/smartpointer.h>
@@ -156,57 +153,6 @@ class MGMatrixBase : public Subscriptor
 };
 
 
-/**
- * Multilevel matrix. This class implements the interface defined by
- * @ref{MGMatrixBase}, using @ref{MGLevelObject} of an arbitrary
- * matrix class.
- *
- * @author Guido Kanschat, 2002
- */
-template <class MATRIX, class VECTOR>
-class MGMatrix : public MGMatrixBase<VECTOR>,
-  public SmartPointer<MGLevelObject<MATRIX> >
-{
-  public:
-                                    /**
-                                     * Constructor. The argument is
-                                     * handed over to the
-                                     * @p{SmartPointer} constructor.
-                                     */
-    MGMatrix (MGLevelObject<MATRIX>* = 0);
-    
-                                    /**
-                                     * Matrix-vector-multiplication on
-                                     * a certain level.
-                                     */
-    virtual void vmult(unsigned int level, VECTOR& dst,
-                      const VECTOR& src) const;
-    
-                                  /**
-                                   * Adding matrix-vector-multiplication on
-                                   * a certain level.
-                                   */
-  virtual void vmult_add(unsigned int level, VECTOR& dst,
-                    const VECTOR& src) const;
-
-                                  /**
-                                   * Transpose
-                                   * matrix-vector-multiplication on
-                                   * a certain level.
-                                   */
-  virtual void Tvmult(unsigned int level, VECTOR& dst,
-                    const VECTOR& src) const;
-
-                                  /**
-                                   * Adding transpose
-                                   * matrix-vector-multiplication on
-                                   * a certain level.
-                                   */
-  virtual void Tvmult_add(unsigned int level, VECTOR& dst,
-                    const VECTOR& src) const;    
-};
-
-
 /**
  * Base class for coarse grid solvers.  This defines the virtual
  * parenthesis operator, being the interface used by multigrid
@@ -397,60 +343,6 @@ MGLevelObject<Object>::get_maxlevel () const
   return minlevel + objects.size() - 1;
 }
 
-/*----------------------------------------------------------------------*/
-
-template <class MATRIX, class VECTOR>
-MGMatrix<MATRIX, VECTOR>::MGMatrix (MGLevelObject<MATRIX>* p)
-               :
-               SmartPointer<MGLevelObject<MATRIX> > (p)
-{}
-
-
-
-template <class MATRIX, class VECTOR>
-void
-MGMatrix<MATRIX, VECTOR>::vmult (unsigned int level,
-                                VECTOR& dst,
-                                const VECTOR& src) const
-{
-  const MGLevelObject<MATRIX>& m = **this;
-  m[level].vmult(dst, src);
-}
-
-
-template <class MATRIX, class VECTOR>
-void
-MGMatrix<MATRIX, VECTOR>::vmult_add (unsigned int level,
-                                VECTOR& dst,
-                                const VECTOR& src) const
-{
-  const MGLevelObject<MATRIX>& m = **this;
-  m[level].vmult_add(dst, src);
-}
-
-
-template <class MATRIX, class VECTOR>
-void
-MGMatrix<MATRIX, VECTOR>::Tvmult (unsigned int level,
-                                VECTOR& dst,
-                                const VECTOR& src) const
-{
-  const MGLevelObject<MATRIX>& m = **this;
-  m[level].Tvmult(dst, src);
-}
-
-
-template <class MATRIX, class VECTOR>
-void
-MGMatrix<MATRIX, VECTOR>::Tvmult_add (unsigned int level,
-                                VECTOR& dst,
-                                const VECTOR& src) const
-{
-  const MGLevelObject<MATRIX>& m = **this;
-  m[level].Tvmult_add(dst, src);
-}
-
-
 /*----------------------------   mgbase.h     ---------------------------*/
 
 #endif

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.