From: cvs Date: Tue, 12 Oct 1999 12:30:11 +0000 (+0000) Subject: Small updates. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=094ba4c3cdf00c428ac577d749de85005742b83d;p=dealii-svn.git Small updates. git-svn-id: https://svn.dealii.org/trunk@1760 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/tensor_function.h b/deal.II/base/include/base/tensor_function.h index aa1ad1e8f6..e79c73d21b 100644 --- a/deal.II/base/include/base/tensor_function.h +++ b/deal.II/base/include/base/tensor_function.h @@ -29,18 +29,22 @@ template class TensorFunction; * @author Guido Kanschat, 1999 */ template -class VectorFunction // - : - public FunctionTime, - public Subscriptor +class VectorFunction : public FunctionTime, + public Subscriptor { public: + /** + * Number of vector components. + */ + const unsigned int n_components; + /** * Constructor. May take an initial vakue * for the time variable, which defaults * to zero. */ - VectorFunction (unsigned n_components, const double initial_time = 0.0); + VectorFunction (const unsigned int n_components, + const double initial_time = 0.0); /** * Virtual destructor; absolutely @@ -48,12 +52,6 @@ class VectorFunction // */ virtual ~VectorFunction (); -// /** -// * Return the value of the function -// * at the given point. -// */ -// virtual double operator () (const Point &p, unsigned component) const; - /** * Set #values# to the point values * of the function at points #p#. @@ -69,7 +67,8 @@ class VectorFunction // * directly in #value_list# of the derived * class. */ - virtual void value (const Point &p, Vector &values) const; + virtual void value (const Point &p, + Vector &values) const; /** * Set #values# to the point values @@ -84,7 +83,7 @@ class VectorFunction // * If possible, overload this function. */ virtual void value_list (const vector > &points, - vector > &values) const; + vector > &values) const; /** * Set #gradients# to the gradients of @@ -93,22 +92,16 @@ class VectorFunction // * already has the right size, i.e. * the same size as the #points# array. */ - virtual void gradient_list (const vector > &points, + virtual void gradient_list (const vector > &points, vector > > &gradients) const; - /** - * Number of vector components. - */ - const unsigned int n_components; - /** * Access #VectorFunction# as a #Function#. * This class allows to store a reference to a * #VectorFunction# and an #index#. Later on, it * can be used as a normal single valued #Function#. */ - class Extractor - : public Function + class Extractor : public Function { public: /** @@ -168,6 +161,8 @@ class VectorFunction // }; + + /** * This class is a model for a tensor valued function. * It returns the value @@ -189,9 +184,7 @@ class VectorFunction // * @author Guido Kanschat, 1999 */ template -class TensorFunction // - : - public VectorFunction +class TensorFunction : public VectorFunction { public: /** @@ -224,12 +217,6 @@ class TensorFunction // virtual void value_list (const vector > &points, vector > &values) const; -// /** -// * Return one component of the value. -// */ -// virtual double operator() (TensorIndex i, const Point& p) const; - - /** * Return the gradient of the function * at the given point.