]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add hp::DoFHandler::default_fe_index
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 27 Apr 2006 15:02:46 +0000 (15:02 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 27 Apr 2006 15:02:46 +0000 (15:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@12923 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 319720da783f8c1ededa6e1e6a35897e073583c4..c9facc4c5127f146e8eb2bf47331acaa3c6ccc3d 100644 (file)
@@ -105,9 +105,33 @@ namespace hp
                                         * certain value, but rather take
                                         * its symbolic name.
                                         */
-      static const unsigned int invalid_dof_index = static_cast<unsigned int>(-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.

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.