]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
implementation of #Vectorfunction::value_list#, doc update
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 2 Jul 1999 09:45:55 +0000 (09:45 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 2 Jul 1999 09:45:55 +0000 (09:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@1529 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/tensor_function.h

index 3185530fa10d9d08c90afb3ae545dc3b7de06893..aa1ad1e8f69546ca2eed2a63ecb3a23f53ef7e18 100644 (file)
@@ -61,6 +61,13 @@ class VectorFunction //<dim>
                                      * already has the right size, i.e.
                                      * the same size as the #n_components#
                                      * array.
+                                     *
+                                     * Usually only #value_list# is called,
+                                     * e.g. by #FEValues#. So, to avoid 
+                                     * multiple calling of this virtual function
+                                     * by #value_list#, implement the vectorfunction
+                                     * directly in #value_list# of the derived
+                                     * class.
                                      */
     virtual void value (const Point<dim>  &p, Vector<double> &values) const;
 
@@ -71,6 +78,10 @@ class VectorFunction //<dim>
                                      * already has the right size, i.e.
                                      * the same size as the #points#
                                      * array.
+                                     *
+                                     * This function uses multiple calling
+                                     * of the virtual function #value# (see there).
+                                     * If possible, overload this function.
                                      */
     virtual void value_list (const vector<Point<dim> > &points,
                             vector<Vector<double> > &values) const;

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.