]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Revert to a default of zero for active_fe_index.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 18 Feb 2006 04:48:42 +0000 (04:48 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 18 Feb 2006 04:48:42 +0000 (04:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@12412 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/hp_dof_handler.cc

index dd97b36d1c3b2a66423981202aad08ef125ab0e2..d1d17255b97aaec6221f862c643e33f5d3f22c6a 100644 (file)
@@ -2138,25 +2138,25 @@ namespace hp
 #endif
 
 
-//
-// Method to create a standard table for the active_fe vector.
-// It is called before the Triangulation is refined and before
-// distribute_dofs is called. That are probably the two places,
-// where an incorrect active_fe table can cause some trouble.
-//
 
   template <int dim>
   void DoFHandler<dim>::create_active_fe_table ()
   {
-                                     // Create sufficiently many hp::DoFLevels.
+                                     // Create sufficiently many
+                                     // hp::DoFLevels.
     while (levels.size () < tria->n_levels ())
       levels.push_back (new internal::hp::DoFLevel<dim>);
 
+                                     // then make sure that on each
+                                     // level we have the appropriate
+                                     // size of active_fe_indices;
+                                     // preset them to zero, i.e. the
+                                     // default FE
     for (unsigned int level=0; level<levels.size(); ++level)
       {
         if (levels[level]->active_fe_indices.size () == 0)
           levels[level]->active_fe_indices.resize (tria->n_raw_cells(level),
-                                                   deal_II_numbers::invalid_unsigned_int);
+                                                   0);
         else
           {
                                              // Either the

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.