// $Id$
// Version: $Name$
//
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
template <int dim>
class PersistentTriangulation : public Triangulation<dim>
{
- public:
+ public:
+ /**
+ * Make the dimension available
+ * in function templates.
+ */
+ static const unsigned int dimension = dim;
+
/**
* Build up the triangulation from the
* coarse grid in future. Copy smoothing
post_refinement_notification (const Triangulation<dim> &tria);
};
+ /**
+ * Make the dimension available
+ * in function templates.
+ */
+ static const unsigned int dimension = dim;
+
/**
* Create a triangulation and create
* the first level of the hierarchy.
typedef typename MGDoFDimensionInfo<dim>::face_iterator face_iterator;
typedef typename MGDoFDimensionInfo<dim>::active_face_iterator active_face_iterator;
+ /**
+ * Make the dimension available
+ * in function templates.
+ */
+ static const unsigned int dimension = dim;
+
/**
* Constructor. Take @p tria as
* the triangulation to work on.
#include <algorithm>
+template <int dim>
+const unsigned int DoFHandler<dim>::dimension;
template <int dim>
const unsigned int DoFHandler<dim>::invalid_dof_index;
namespace hp
{
+ template <int dim>
+ const unsigned int DoFHandler<dim>::dimension;
template <int dim>
const unsigned int DoFHandler<dim>::invalid_dof_index;
// $Id$
// Version: $Name$
//
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005 by the deal.II authors
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005, 2006 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
#include <iostream>
+template <int dim>
+const unsigned int
+Triangulation<dim>::dimension;
+
template <int dim>
PersistentTriangulation<dim>::
const StraightBoundary<dim> *
Triangulation<dim>::straight_boundary = &dummy_straight_boundary;
+template <int dim>
+const unsigned int
+Triangulation<dim>::dimension;
template <int dim>
/* ------------------------ MGDoFHandler ------------------------------------- */
+template <int dim>
+const unsigned int MGDoFHandler<dim>::dimension;
+
+
template <int dim>
MGDoFHandler<dim>::MGDoFHandler (const Triangulation<dim> &tria) :
DoFHandler<dim> (tria)