]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make this compilable.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Apr 1999 14:55:36 +0000 (14:55 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Apr 1999 14:55:36 +0000 (14:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@1115 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_smoother.h
deal.II/deal.II/include/numerics/mg_smoother.h

index 1fc78c266f6ddedb741283fa6022a94bd55b9913..f09b72b237d921e09a786ef470eb838f0bb3dfee 100644 (file)
@@ -5,6 +5,13 @@
 /*----------------------------   mg_smoother.h     ---------------------------*/
 
 
+#include <lac/forward-declarations.h>
+#include <basic/forward-declarations.h>
+#include <base/subscriptor.h>
+#include <vector>
+
+
+
 /**
  * Abstract base class for multigrid smoothers. It declares the interface
  * to smoothers and implements some functionality for setting the values
@@ -14,7 +21,7 @@
  *
  * @author Wolfgang Bangerth, Guido Kanschat, 1999
  */
-class MGSmoother :  public Subcriptor 
+class MGSmoother :  public Subscriptor 
 {
   private:
                                     /**
@@ -39,6 +46,11 @@ class MGSmoother :  public Subcriptor
     template <int dim>
     MGSmoother (const MGDoFHandler<dim> &mg_dof);
 
+                                    /**
+                                     * Destructor, made virtual.
+                                     */
+    virtual ~MGSmoother ();
+    
                                     /**
                                      * Smooth the vector #u# on the given
                                      * level. This function should set the
@@ -50,7 +62,7 @@ class MGSmoother :  public Subcriptor
                                      * things.
                                      */
     virtual void smooth (const unsigned int  level,
-                        vector<float>      &u) const = 0;
+                        Vector<float>      &u) const = 0;
 
                                     /**
                                      * Reset the values of the degrees of
@@ -59,7 +71,7 @@ class MGSmoother :  public Subcriptor
                                      * data vector #u#.
                                      */
     void set_zero_interior_boundary (const unsigned int  level,
-                                    vector<float>      &u) const;
+                                    Vector<float>      &u) const;
 
   private:
                                     /**
index 1fc78c266f6ddedb741283fa6022a94bd55b9913..f09b72b237d921e09a786ef470eb838f0bb3dfee 100644 (file)
@@ -5,6 +5,13 @@
 /*----------------------------   mg_smoother.h     ---------------------------*/
 
 
+#include <lac/forward-declarations.h>
+#include <basic/forward-declarations.h>
+#include <base/subscriptor.h>
+#include <vector>
+
+
+
 /**
  * Abstract base class for multigrid smoothers. It declares the interface
  * to smoothers and implements some functionality for setting the values
@@ -14,7 +21,7 @@
  *
  * @author Wolfgang Bangerth, Guido Kanschat, 1999
  */
-class MGSmoother :  public Subcriptor 
+class MGSmoother :  public Subscriptor 
 {
   private:
                                     /**
@@ -39,6 +46,11 @@ class MGSmoother :  public Subcriptor
     template <int dim>
     MGSmoother (const MGDoFHandler<dim> &mg_dof);
 
+                                    /**
+                                     * Destructor, made virtual.
+                                     */
+    virtual ~MGSmoother ();
+    
                                     /**
                                      * Smooth the vector #u# on the given
                                      * level. This function should set the
@@ -50,7 +62,7 @@ class MGSmoother :  public Subcriptor
                                      * things.
                                      */
     virtual void smooth (const unsigned int  level,
-                        vector<float>      &u) const = 0;
+                        Vector<float>      &u) const = 0;
 
                                     /**
                                      * Reset the values of the degrees of
@@ -59,7 +71,7 @@ class MGSmoother :  public Subcriptor
                                      * data vector #u#.
                                      */
     void set_zero_interior_boundary (const unsigned int  level,
-                                    vector<float>      &u) const;
+                                    Vector<float>      &u) const;
 
   private:
                                     /**

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.