From a2c56d46b47b02eafcc3c7cbc3a4783d670b0145 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 3 May 2006 02:24:28 +0000 Subject: [PATCH] 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 --- deal.II/deal.II/source/dofs/hp_dof_handler.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 -- 2.39.5