From 83af12ba7c8215f91daae26c3ef1ea23ab1ef094 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 17 Jun 2017 19:37:59 -0600 Subject: [PATCH] Remove a wrong comment. Add some code documentation. --- include/deal.II/dofs/dof_accessor.templates.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/deal.II/dofs/dof_accessor.templates.h b/include/deal.II/dofs/dof_accessor.templates.h index ea91aa3caf..2e2e8ca99c 100644 --- a/include/deal.II/dofs/dof_accessor.templates.h +++ b/include/deal.II/dofs/dof_accessor.templates.h @@ -2793,9 +2793,7 @@ namespace internal // implementation for the case of - // hp::DoFHandler objects. it's - // not implemented there, for no - // space dimension + // hp::DoFHandler objects. template static void @@ -2805,7 +2803,7 @@ namespace internal if (accessor.has_children()) return; - const unsigned int dofs_per_cell = accessor.get_fe().dofs_per_cell; + const unsigned int dofs_per_cell = accessor.get_fe().dofs_per_cell; // make sure the cache is at least // as big as we need it when @@ -2823,6 +2821,9 @@ namespace internal ->cell_dof_indices_cache.size(), ExcInternalError()); + // call the get_dof_indices() function of DoFAccessor, which goes through all the + // parts of the cell to get the indices by hand. the corresponding function + // of DoFCellAccessor can then later use the cache std::vector dof_indices (dofs_per_cell); static_cast,level_dof_access> &> (accessor).get_dof_indices (dof_indices, accessor.active_fe_index()); -- 2.39.5