/**
* Laplacian of the function at one point.
*/
- double laplacian (const Point<dim> &p,
- const unsigned int component = 0) const;
+ virtual double laplacian (const Point<dim> &p,
+ const unsigned int component = 0) const;
/**
* Laplacian of the function at multiple points.
*/
- void laplacian_list (const vector<Point<dim> > &points,
- vector<double> &values,
- const unsigned int component = 0) const;
+ virtual void laplacian_list (const vector<Point<dim> > &points,
+ vector<double> &values,
+ const unsigned int component = 0) const;
};
/**
* Laplacian at a single point.
*/
- double laplacian (const Point<dim> &p,
- const unsigned int component = 0) const;
+ virtual double laplacian (const Point<dim> &p,
+ const unsigned int component = 0) const;
/**
* Laplacian at multiple points.
*/
- void laplacian_list (const vector<Point<dim> > &points,
- vector<double> &values,
- const unsigned int component = 0) const;
+ virtual void laplacian_list (const vector<Point<dim> > &points,
+ vector<double> &values,
+ const unsigned int component = 0) const;
};
/**
* Laplacian at a single point.
*/
- double laplacian(const Point<dim> &p,
- const unsigned int component = 0) const;
+ virtual double laplacian (const Point<dim> &p,
+ const unsigned int component = 0) const;
/**
* Laplacian at multiple points.
*/
- void laplacian_list(const vector<Point<dim> > &points,
- vector<double> &values,
- const unsigned int component = 0) const;
+ virtual void laplacian_list (const vector<Point<dim> > &points,
+ vector<double> &values,
+ const unsigned int component = 0) const;
};
/**
* Laplacian at a single point.
*/
- double laplacian(const Point<dim> &p,
- const unsigned int component = 0) const;
+ virtual double laplacian (const Point<dim> &p,
+ const unsigned int component = 0) const;
/**
* Laplacian at multiple points.
*/
- void laplacian_list(const vector<Point<dim> > &points,
- vector<double> &values,
- const unsigned int component = 0) const;
+ virtual void laplacian_list (const vector<Point<dim> > &points,
+ vector<double> &values,
+ const unsigned int component = 0) const;
};
/**
* 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<Point<2> > &points,
- vector<double> &values,
- const unsigned int component = 0) const;
+ virtual void laplacian_list (const vector<Point<2> > &points,
+ vector<double> &values,
+ const unsigned int component = 0) const;
};
/**
* 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<Point<2> > &points,
- vector<double> &values,
- const unsigned int component = 0) const;
+ virtual void laplacian_list (const vector<Point<2> > &points,
+ vector<double> &values,
+ const unsigned int component = 0) const;
};
* advection direction here and
* the steepness of the slope.
*/
- JumpFunction (const Point<dim>& direction, double steepness);
+ JumpFunction (const Point<dim> &direction,
+ const double steepness);
/**
* Function value at one point.
/**
* Laplacian of the function at one point.
*/
- double laplacian (const Point<dim> &p,
- const unsigned int component = 0) const;
+ virtual double laplacian (const Point<dim> &p,
+ const unsigned int component = 0) const;
/**
* Laplacian of the function at multiple points.
*/
- void laplacian_list (const vector<Point<dim> > &points,
- vector<double> &values,
- const unsigned int component = 0) const;
+ virtual void laplacian_list (const vector<Point<dim> > &points,
+ vector<double> &values,
+ const unsigned int component = 0) const;
protected:
/**
* Advection vector.
*/
- Point<dim> direction;
+ const Point<dim> direction;
/**
- * Steepness (maximal derivative) of the slope.
+ * Steepness (maximal derivative)
+ * of the slope.
*/
- double steepness;
+ const double steepness;
/**
* Advection angle.