]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add dimension info
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Nov 2009 04:24:45 +0000 (04:24 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Nov 2009 04:24:45 +0000 (04:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@20162 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/polynomials_p.h

index afb17d79658ebef4725397f180079e0889e7c8d6..7a07e84cc2b083fc63eac9d7439174b6e51e0985 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2006, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -46,6 +46,14 @@ template <int dim>
 class PolynomialsP: public PolynomialSpace<dim>
 {
   public:
+                                    /**
+                                     * Access to the dimension of
+                                     * this object, for checking and
+                                     * automatic setting of dimension
+                                     * in other classes.
+                                     */
+    static const unsigned int dimension = dim;
+    
                                     /**
                                      * Constructor. Creates all basis
                                      * functions of $P_p$.

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.