From: Guido Kanschat Date: Wed, 21 Dec 2005 16:13:06 +0000 (+0000) Subject: add dimension info to dof handlers X-Git-Tag: v8.0.0~12742 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09e1efcd58ba3414caa0072a296061b9d01cd814;p=dealii.git add dimension info to dof handlers git-svn-id: https://svn.dealii.org/trunk@11915 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/dofs/dof_handler.h b/deal.II/deal.II/include/dofs/dof_handler.h index 4e12d819c9..a6a7651f3d 100644 --- a/deal.II/deal.II/include/dofs/dof_handler.h +++ b/deal.II/deal.II/include/dofs/dof_handler.h @@ -125,6 +125,12 @@ class DoFHandler : public Subscriptor * declared elsewhere. */ typedef typename ::FunctionMap::type FunctionMap; + + /** + * Make the dimension available + * in function templates. + */ + static const unsigned int dimension = dim; /** * When the arrays holding the diff --git a/deal.II/deal.II/include/dofs/hp_dof_handler.h b/deal.II/deal.II/include/dofs/hp_dof_handler.h index fc2fdd20ba..6a2c01f1a2 100644 --- a/deal.II/deal.II/include/dofs/hp_dof_handler.h +++ b/deal.II/deal.II/include/dofs/hp_dof_handler.h @@ -1,15 +1,15 @@ -//---------------------------- hp_dof_handler.h ------------------------ +//---------------------------------------------------------------------- // $Id$ // Version: $Name$ // -// Copyright (C) 2003 by the deal.II authors +// Copyright (C) 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer // to the file deal.II/doc/license.html for the text and // further information on this license. // -//---------------------------- hp_dof_handler.h ------------------------ +//---------------------------------------------------------------------- #ifndef __deal2__hp_dof_handler_h #define __deal2__hp_dof_handler_h @@ -65,6 +65,12 @@ class hpDoFHandler : public Subscriptor, */ typedef typename FunctionMap::type FunctionMap; + /** + * Make the dimension available + * in function templates. + */ + static const unsigned int dimension = dim; + /** * When the arrays holding the * DoF indices are set up, but