From: Wolfgang Bangerth Date: Wed, 3 May 2006 02:24:28 +0000 (+0000) Subject: Fix hp/step-5 by making sure we only access data once the respective tables X-Git-Tag: v8.0.0~11793 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=093054ea80023fb34edbd2147905a79b92501f60;p=dealii.git Fix hp/step-5 by making sure we only access data once the respective tables are there. git-svn-id: https://svn.dealii.org/trunk@13008 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 437bbfc07b..5672de40f8 100644 --- a/deal.II/deal.II/source/dofs/hp_dof_handler.cc +++ b/deal.II/deal.II/source/dofs/hp_dof_handler.cc @@ -1524,6 +1524,11 @@ namespace hp finite_elements = &ff; + // This call ensures that the + // active_fe_indices vectors are + // initialized correctly. + create_active_fe_table (); + // up front make sure that the fe // collection is large enough to // cover all fe indices presently @@ -1533,12 +1538,9 @@ namespace hp ExcInvalidFEIndex (cell->active_fe_index(), finite_elements->size())); - - // This call ensures that the - // active_fe_indices vectors are - // initialized correctly. - create_active_fe_table (); + // then allocate space for all + // the other tables reserve_space (); // Clear user flags because we will