From: Wolfgang Bangerth Date: Sat, 18 Feb 2006 04:48:42 +0000 (+0000) Subject: Revert to a default of zero for active_fe_index. X-Git-Tag: v8.0.0~12270 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5db6c0ea0439fc515f8911c314551c674874fa39;p=dealii.git Revert to a default of zero for active_fe_index. git-svn-id: https://svn.dealii.org/trunk@12412 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/dofs/hp_dof_handler.cc b/deal.II/deal.II/source/dofs/hp_dof_handler.cc index dd97b36d1c..d1d17255b9 100644 --- a/deal.II/deal.II/source/dofs/hp_dof_handler.cc +++ b/deal.II/deal.II/source/dofs/hp_dof_handler.cc @@ -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 void DoFHandler::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); + // 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; levelactive_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