From 90272a72dfcb2666420c949c76262603fba36d85 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Wed, 25 Nov 2009 04:24:45 +0000 Subject: [PATCH] add dimension info git-svn-id: https://svn.dealii.org/trunk@20162 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/polynomials_p.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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$. -- 2.39.5