]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix hp/step-5 by making sure we only access data once the respective tables
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 May 2006 02:24:28 +0000 (02:24 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 May 2006 02:24:28 +0000 (02:24 +0000)
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

index 437bbfc07b6f7c7ebc56c66a25956796aa92382f..5672de40f82acc3c39fee9a577283e11021092eb 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.