]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around a problem introduced by adding the assertions a couple patches back.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 30 Oct 2012 13:37:40 +0000 (13:37 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 30 Oct 2012 13:37:40 +0000 (13:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@27237 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/hp/dof_handler.cc

index 1e162dcfb941618aebc1f5d8ce2ca5f42b61d9bb..14ec3c49ffe60e57574f1b01bcfa1b540c56d7be 100644 (file)
@@ -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()]);
               }
           }
       }

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.