]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Previously, the preconditioners using matrices, derived privately from
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Aug 2001 11:35:49 +0000 (11:35 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Aug 2001 11:35:49 +0000 (11:35 +0000)
PreconditionRelaxation, but introduced the only function of the base
class later on explicitely into the public area. Since private
inheritance interferes with the use of the Subscriptor class in the
base class (we can't cast to it any more), change the inheritance to
public and remove the explicit "using" declarations.

git-svn-id: https://svn.dealii.org/trunk@4892 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 919905cddb18ac1135ad435fff41245a22c349a2..489c4a5ec8d11e762f1bacaee911d1da73264dc9 100644 (file)
@@ -204,7 +204,7 @@ class PreconditionRelaxation : public Subscriptor
  * @author Guido Kanschat, 2000
  */
 template <class MATRIX = SparseMatrix<double> >
-class PreconditionJacobi : public Subscriptor, private PreconditionRelaxation<MATRIX>
+class PreconditionJacobi : public PreconditionRelaxation<MATRIX>
 {
   public:
                                     /**
@@ -221,12 +221,6 @@ class PreconditionJacobi : public Subscriptor, private PreconditionRelaxation<MA
                                      */
     template<class VECTOR>
     void Tvmult (VECTOR&, const VECTOR&) const;
-
-                                    /**
-                                     * Make function of base class
-                                     * publicly available.
-                                     */
-    PreconditionRelaxation<MATRIX>::initialize;
 };
 
 
@@ -259,7 +253,7 @@ class PreconditionJacobi : public Subscriptor, private PreconditionRelaxation<MA
  * @author Guido Kanschat, 2000
  */
 template <class MATRIX = SparseMatrix<double> >
-class PreconditionSOR : public Subscriptor, private PreconditionRelaxation<MATRIX>
+class PreconditionSOR : public PreconditionRelaxation<MATRIX>
 {
   public:
                                     /**
@@ -274,12 +268,6 @@ class PreconditionSOR : public Subscriptor, private PreconditionRelaxation<MATRI
                                      */
     template<class VECTOR>
     void Tvmult (VECTOR&, const VECTOR&) const;
-
-                                    /**
-                                     * Make function of base class
-                                     * publicly available.
-                                     */
-    PreconditionRelaxation<MATRIX>::initialize;
 };
 
 
@@ -312,7 +300,7 @@ class PreconditionSOR : public Subscriptor, private PreconditionRelaxation<MATRI
  * @author Guido Kanschat, 2000
  */
 template <class MATRIX = SparseMatrix<double> >
-class PreconditionSSOR : public Subscriptor, private PreconditionRelaxation<MATRIX>
+class PreconditionSSOR : public PreconditionRelaxation<MATRIX>
 {
   public:
                                     /**
@@ -330,12 +318,6 @@ class PreconditionSSOR : public Subscriptor, private PreconditionRelaxation<MATR
                                      */
     template<class VECTOR>
     void Tvmult (VECTOR&, const VECTOR&) const;
-
-                                    /**
-                                     * Make function of base class
-                                     * publicly available.
-                                     */
-    PreconditionRelaxation<MATRIX>::initialize;
 };
 
 

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.