From: Wolfgang Bangerth Date: Sat, 23 Jul 2016 14:45:50 +0000 (-0500) Subject: Add DoFAccessor<0,...>::get_mg_dof_indices. X-Git-Tag: v8.5.0-rc1~853^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=851339678e5fefbe5214980064377a898e758a4a;p=dealii.git 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. --- 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