From 08cb3d2b4907cfe2b3c3fbc81c21fb40238a55cf Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 27 Apr 2006 15:00:28 +0000 Subject: [PATCH] Add DoFHandler::default_fe_index git-svn-id: https://svn.dealii.org/trunk@12922 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/dofs/dof_handler.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/deal.II/deal.II/include/dofs/dof_handler.h b/deal.II/deal.II/include/dofs/dof_handler.h index 9d5823292f..d509fc5800 100644 --- a/deal.II/deal.II/include/dofs/dof_handler.h +++ b/deal.II/deal.II/include/dofs/dof_handler.h @@ -154,6 +154,28 @@ class DoFHandler : public Subscriptor * its symbolic name. */ static const unsigned int invalid_dof_index = deal_II_numbers::invalid_unsigned_int; + + /** + * The default index of the + * finite element to be used on a + * given cell. Since the present + * class only supports the same + * finite element to be used on + * all cells, the index of the + * finite element needs to be the + * same on all cells anyway, and + * by convention we pick zero for + * this value. The situation is + * different for hp objects + * (i.e. the hp::DoFHandler + * class) where different finite + * element indices may be used on + * different cells, and the + * default index there + * corresponds to an invalid + * value. + */ + static const unsigned int default_fe_index = 0; /** * Constructor. Take @p tria as the -- 2.39.5