From 8be30fc8dc12c74353ca9a1e0ecaefd1705fa9f4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 27 Apr 2006 15:02:46 +0000 Subject: [PATCH] Add hp::DoFHandler::default_fe_index git-svn-id: https://svn.dealii.org/trunk@12923 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/dofs/hp_dof_handler.h | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) 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 319720da78..c9facc4c51 100644 --- a/deal.II/deal.II/include/dofs/hp_dof_handler.h +++ b/deal.II/deal.II/include/dofs/hp_dof_handler.h @@ -105,9 +105,33 @@ namespace hp * certain value, but rather take * its symbolic name. */ - static const unsigned int invalid_dof_index = static_cast(-1); + 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. For the usual, + * non-hp ::DoFHandler class + * that 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 here is + * different, since the hp + * classes support the case + * where different finite + * element indices may be used + * on different cells. The + * default index consequently + * corresponds to an invalid + * value. + */ + static const unsigned int default_fe_index = deal_II_numbers::invalid_unsigned_int; + + /** * Constructor. Take @p tria as the * triangulation to work on. -- 2.39.5