From: 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40a76852b899ad360d7331b727f44b9887492cda;p=dealii-svn.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()]); } } }