From 83d42371cb4d83ceafaad347f2175d5a8a2d3d87 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 9 Apr 1999 14:55:36 +0000 Subject: [PATCH] Make this compilable. git-svn-id: https://svn.dealii.org/trunk@1115 0785d39b-7218-0410-832d-ea1e28bc413d --- .../deal.II/include/multigrid/mg_smoother.h | 18 +++++++++++++++--- deal.II/deal.II/include/numerics/mg_smoother.h | 18 +++++++++++++++--- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/deal.II/deal.II/include/multigrid/mg_smoother.h b/deal.II/deal.II/include/multigrid/mg_smoother.h index 1fc78c266f..f09b72b237 100644 --- a/deal.II/deal.II/include/multigrid/mg_smoother.h +++ b/deal.II/deal.II/include/multigrid/mg_smoother.h @@ -5,6 +5,13 @@ /*---------------------------- mg_smoother.h ---------------------------*/ +#include +#include +#include +#include + + + /** * 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 MGSmoother (const MGDoFHandler &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 &u) const = 0; + Vector &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 &u) const; + Vector &u) const; private: /** diff --git a/deal.II/deal.II/include/numerics/mg_smoother.h b/deal.II/deal.II/include/numerics/mg_smoother.h index 1fc78c266f..f09b72b237 100644 --- a/deal.II/deal.II/include/numerics/mg_smoother.h +++ b/deal.II/deal.II/include/numerics/mg_smoother.h @@ -5,6 +5,13 @@ /*---------------------------- mg_smoother.h ---------------------------*/ +#include +#include +#include +#include + + + /** * 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 MGSmoother (const MGDoFHandler &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 &u) const = 0; + Vector &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 &u) const; + Vector &u) const; private: /** -- 2.39.5