]> https://gitweb.dealii.org/ - dealii.git/commitdiff
New n_tensor_product_polynomials function. Small changes.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Wed, 10 Jan 2001 18:17:23 +0000 (18:17 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Wed, 10 Jan 2001 18:17:23 +0000 (18:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@3642 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/tensor_product_polynomials.h

index 8585176a6ab340527f6fd25649ac3916a30b4574..b91e5336a728d4fafc89ccd8227be9e45ae74882 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2000 by the deal.II authors
+//    Copyright (C) 2000, 2001 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -39,7 +39,9 @@ class TensorProductPolynomials
                                     /**
                                      * Constructor. @p{pols} is a
                                      * vector of pointers to
-                                     * one-dimensional polynomials.
+                                     * one-dimensional polynomials
+                                     * and will be copied into the
+                                     * member variable @p{polynomials}.
                                      */
     TensorProductPolynomials(const vector<SmartPointer<Polynomial> > &pols);
 
@@ -59,6 +61,13 @@ class TensorProductPolynomials
                  vector<Tensor<1,dim> > &grads,
                  vector<Tensor<2,dim> > &grad_grads) const;
 
+                                    /**
+                                     * Returns the number of tensor
+                                     * product polynomials. For $n$
+                                     * 1d polynomials this is $n^dim$.
+                                     */
+    unsigned int n_tensor_product_polynomials() const;
+
                                     /**
                                      * Exception.
                                      */
@@ -73,6 +82,13 @@ class TensorProductPolynomials
                                      * given to the constructor.
                                      */
     vector<SmartPointer<Polynomial> > polynomials;
+
+                                    /**
+                                     * Number of tensor product
+                                     * polynomials. For $n$ 1d
+                                     * polynomials this is $n^dim$.
+                                     */
+    const unsigned int n_tensor_pols;
 };
 
 

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.