From 673edfaabf35deaecb5a7c4d5624d4a13928b43d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 18 Jul 2000 14:25:41 +0000 Subject: [PATCH] Add some (irrelevant) `virtual' keywords here and there. git-svn-id: https://svn.dealii.org/trunk@3178 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/function_lib.h | 80 ++++++++++++------------ 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/deal.II/base/include/base/function_lib.h b/deal.II/base/include/base/function_lib.h index 3b6c838659..ff84da5146 100644 --- a/deal.II/base/include/base/function_lib.h +++ b/deal.II/base/include/base/function_lib.h @@ -60,15 +60,15 @@ class SquareFunction : public Function /** * Laplacian of the function at one point. */ - double laplacian (const Point &p, - const unsigned int component = 0) const; + virtual double laplacian (const Point &p, + const unsigned int component = 0) const; /** * Laplacian of the function at multiple points. */ - void laplacian_list (const vector > &points, - vector &values, - const unsigned int component = 0) const; + virtual void laplacian_list (const vector > &points, + vector &values, + const unsigned int component = 0) const; }; @@ -117,15 +117,15 @@ class PillowFunction : public Function /** * Laplacian at a single point. */ - double laplacian (const Point &p, - const unsigned int component = 0) const; + virtual double laplacian (const Point &p, + const unsigned int component = 0) const; /** * Laplacian at multiple points. */ - void laplacian_list (const vector > &points, - vector &values, - const unsigned int component = 0) const; + virtual void laplacian_list (const vector > &points, + vector &values, + const unsigned int component = 0) const; }; @@ -169,15 +169,15 @@ class CosineFunction : public Function /** * Laplacian at a single point. */ - double laplacian(const Point &p, - const unsigned int component = 0) const; + virtual double laplacian (const Point &p, + const unsigned int component = 0) const; /** * Laplacian at multiple points. */ - void laplacian_list(const vector > &points, - vector &values, - const unsigned int component = 0) const; + virtual void laplacian_list (const vector > &points, + vector &values, + const unsigned int component = 0) const; }; @@ -219,15 +219,15 @@ class ExpFunction : public Function /** * Laplacian at a single point. */ - double laplacian(const Point &p, - const unsigned int component = 0) const; + virtual double laplacian (const Point &p, + const unsigned int component = 0) const; /** * Laplacian at multiple points. */ - void laplacian_list(const vector > &points, - vector &values, - const unsigned int component = 0) const; + virtual void laplacian_list (const vector > &points, + vector &values, + const unsigned int component = 0) const; }; @@ -268,15 +268,15 @@ class LSingularityFunction : public Function<2> /** * Laplacian at a single point. */ - double laplacian(const Point<2> &p, - const unsigned int component = 0) const; + virtual double laplacian (const Point<2> &p, + const unsigned int component = 0) const; /** * Laplacian at multiple points. */ - void laplacian_list(const vector > &points, - vector &values, - const unsigned int component = 0) const; + virtual void laplacian_list (const vector > &points, + vector &values, + const unsigned int component = 0) const; }; @@ -317,15 +317,15 @@ class SlitSingularityFunction : public Function<2> /** * Laplacian at a single point. */ - double laplacian(const Point<2> &p, - const unsigned int component = 0) const; + virtual double laplacian (const Point<2> &p, + const unsigned int component = 0) const; /** * Laplacian at multiple points. */ - void laplacian_list(const vector > &points, - vector &values, - const unsigned int component = 0) const; + virtual void laplacian_list (const vector > &points, + vector &values, + const unsigned int component = 0) const; }; @@ -352,7 +352,8 @@ class JumpFunction : public Function * advection direction here and * the steepness of the slope. */ - JumpFunction (const Point& direction, double steepness); + JumpFunction (const Point &direction, + const double steepness); /** * Function value at one point. @@ -383,25 +384,26 @@ class JumpFunction : public Function /** * Laplacian of the function at one point. */ - double laplacian (const Point &p, - const unsigned int component = 0) const; + virtual double laplacian (const Point &p, + const unsigned int component = 0) const; /** * Laplacian of the function at multiple points. */ - void laplacian_list (const vector > &points, - vector &values, - const unsigned int component = 0) const; + virtual void laplacian_list (const vector > &points, + vector &values, + const unsigned int component = 0) const; protected: /** * Advection vector. */ - Point direction; + const Point direction; /** - * Steepness (maximal derivative) of the slope. + * Steepness (maximal derivative) + * of the slope. */ - double steepness; + const double steepness; /** * Advection angle. -- 2.39.5