]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add dimension info to dof handlers
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 21 Dec 2005 16:13:06 +0000 (16:13 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 21 Dec 2005 16:13:06 +0000 (16:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@11915 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_handler.h
deal.II/deal.II/include/dofs/hp_dof_handler.h

index 4e12d819c96b066b03a0886022d0a0673a17ae4a..a6a7651f3d608652020c637be4348e00ecd80f40 100644 (file)
@@ -125,6 +125,12 @@ class DoFHandler  :  public Subscriptor
                                      * declared elsewhere.
                                      */
     typedef typename ::FunctionMap<dim>::type FunctionMap;
+
+                                    /**
+                                     * Make the dimension available
+                                     * in function templates.
+                                     */
+    static const unsigned int dimension = dim;
     
                                     /**
                                      * When the arrays holding the
index fc2fdd20ba744d78e02ee2303f46c240dbb8d27d..6a2c01f1a244592653b7c0a062d342ad00f43c70 100644 (file)
@@ -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<dim>::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

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.