From: Wolfgang Bangerth Date: Tue, 30 Oct 2012 13:37:40 +0000 (+0000) Subject: Work around a problem introduced by adding the assertions a couple patches back. X-Git-Tag: v8.0.0~1912 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48c27b8463a5c0f26b69cecc6df020275c03a030;p=dealii.git Work around a problem introduced by adding the assertions a couple patches back. git-svn-id: https://svn.dealii.org/trunk@27237 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/hp/dof_handler.cc b/deal.II/source/hp/dof_handler.cc index 1e162dcfb9..14ec3c49ff 100644 --- a/deal.II/source/hp/dof_handler.cc +++ b/deal.II/source/hp/dof_handler.cc @@ -3283,10 +3283,19 @@ template <> if (cell->has_children () && !(*has_children [cell->level ()])[cell->index ()]) { - // Set active_fe_index in children to the - // same value as in the parent cell. + // Set active_fe_index in + // children to the same value + // as in the parent + // cell. note that we can't + // access the active fe index + // of an inactive cell any + // more via + // cell->active_fe_index, so + // we have to do it through a + // more indirect way for (unsigned int i = 0; i < cell->n_children(); ++i) - cell->child (i)->set_active_fe_index (cell->active_fe_index ()); + cell->child (i)->set_active_fe_index (levels[cell->level()] + ->active_fe_indices[cell->index()]); } } }