From: kanschat Date: Wed, 25 Nov 2009 04:24:45 +0000 (+0000) Subject: add dimension info X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aa25ca3bbe2d472925fcda814fe59ca8314c0d6;p=dealii-svn.git add dimension info git-svn-id: https://svn.dealii.org/trunk@20162 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/polynomials_p.h b/deal.II/base/include/base/polynomials_p.h index afb17d7965..7a07e84cc2 100644 --- a/deal.II/base/include/base/polynomials_p.h +++ b/deal.II/base/include/base/polynomials_p.h @@ -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 class PolynomialsP: public PolynomialSpace { 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$.