From 48c27b8463a5c0f26b69cecc6df020275c03a030 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 30 Oct 2012 13:37:40 +0000 Subject: [PATCH] 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 --- deal.II/source/hp/dof_handler.cc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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()]); } } } -- 2.39.5