]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Inheritance changed to private
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 29 Jun 2000 20:04:11 +0000 (20:04 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 29 Jun 2000 20:04:11 +0000 (20:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@3105 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/precondition_block.h

index 33f5d530955210f9325fa9fe3d80d0c89e370231..bd5eedfb6cb473722243ca5decac27b1b2a82194 100644 (file)
@@ -75,7 +75,7 @@ template <typename number> class Vector;
  * @author Ralf Hartmann, 1999
  */
 template<typename number, typename inverse_type = number>
-class PreconditionBlock: public Subscriptor
+class PreconditionBlock
 {
   public:
                                     /**
@@ -86,7 +86,7 @@ class PreconditionBlock: public Subscriptor
                                     /**
                                      * Destructor.
                                      */
-    virtual ~PreconditionBlock();
+    ~PreconditionBlock();
 
                                     /**
                                      * Initialize matrix and block
@@ -108,7 +108,7 @@ class PreconditionBlock: public Subscriptor
                                      * that it had directly after
                                      * calling the constructor.
                                      */
-    virtual void clear();
+    void clear();
 
                                     /**
                                      * Use only the inverse of the
@@ -248,9 +248,21 @@ class PreconditionBlock: public Subscriptor
  * Block Jacobi preconditioning.
  */
 template<typename number, typename inverse_type = number>
-class PreconditionBlockJacobi : public PreconditionBlock<number,inverse_type>
+class PreconditionBlockJacobi : public Subscriptor,
+                               private PreconditionBlock<number,inverse_type>
 {
   public:
+                                    /**
+                                     * Make initialization function
+                                     * publicly available.
+                                     */
+    PreconditionBlock<number,inverse_type>::initialize;
+    
+                                    /**
+                                     * Make function public.
+                                     */
+    PreconditionBlock<number,inverse_type>::invert_diagblocks;
+    
                                     /**
                                      * Execute block Jacobi
                                      * preconditioning.
@@ -283,7 +295,8 @@ class PreconditionBlockJacobi : public PreconditionBlock<number,inverse_type>
  * in the @p{operator ()} function of this class.
  */
 template<typename number, typename inverse_type = number>
-class PreconditionBlockSOR : public PreconditionBlock<number,inverse_type>
+class PreconditionBlockSOR : public  Subscriptor,
+                            private PreconditionBlock<number,inverse_type>
 {
   public:
                                     /**
@@ -297,6 +310,17 @@ class PreconditionBlockSOR : public PreconditionBlock<number,inverse_type>
                                      */
     virtual ~PreconditionBlockSOR();
 
+                                    /**
+                                     * Make initialization function
+                                     * publicly available.
+                                     */
+    PreconditionBlock<number,inverse_type>::initialize;
+    
+                                    /**
+                                     * Make function public.
+                                     */
+    PreconditionBlock<number,inverse_type>::invert_diagblocks;
+
                                     /**
                                      * Set the relaxation parameter.
                                      */
@@ -323,7 +347,7 @@ class PreconditionBlockSOR : public PreconditionBlock<number,inverse_type>
 
   private:
                                     /**
-                                     * Damping parameter.
+                                     * Relaxation parameter.
                                      */
     number omega;
 };

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.