From 851339678e5fefbe5214980064377a898e758a4a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 23 Jul 2016 09:45:50 -0500 Subject: [PATCH] Add DoFAccessor<0,...>::get_mg_dof_indices. This function was previously missing. The patch really only adds the declaration and a dummy definition throwing ExcNotImplemented(), but it at least enables some generic programming that would otherwise lead to compiler errors. --- include/deal.II/dofs/dof_accessor.h | 11 +++++++++++ include/deal.II/dofs/dof_accessor.templates.h | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/include/deal.II/dofs/dof_accessor.h b/include/deal.II/dofs/dof_accessor.h index 9178585b56..4fd0407eac 100644 --- a/include/deal.II/dofs/dof_accessor.h +++ b/include/deal.II/dofs/dof_accessor.h @@ -906,6 +906,17 @@ public: void get_dof_indices (std::vector &dof_indices, const unsigned int fe_index = AccessorData::default_fe_index) const; + + /** + * Return the global multilevel indices of the degrees of freedom that live + * on the current object with respect to the given level within the + * multigrid hierarchy. The indices refer to the local numbering for the + * level this line lives on. + */ + void get_mg_dof_indices (const int level, + std::vector &dof_indices, + const unsigned int fe_index = AccessorData::default_fe_index) const; + /** * Global DoF index of the i degree associated with the @p vertexth * vertex of the present cell. diff --git a/include/deal.II/dofs/dof_accessor.templates.h b/include/deal.II/dofs/dof_accessor.templates.h index d428e19a46..12177b6ff9 100644 --- a/include/deal.II/dofs/dof_accessor.templates.h +++ b/include/deal.II/dofs/dof_accessor.templates.h @@ -2300,6 +2300,24 @@ DoFAccessor<0,DoFHandlerType<1,spacedim>, level_dof_access>::get_dof_indices +template