From: Daniel Arndt Date: Mon, 21 Aug 2017 16:58:50 +0000 (+0200) Subject: Deprecate all DoFTools compatibility functions for DH and hp::DH X-Git-Tag: v9.0.0-rc1~1189^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a54f16231881ae3b18d2e8d849dd8a1c0f9ba921;p=dealii.git Deprecate all DoFTools compatibility functions for DH and hp::DH --- diff --git a/include/deal.II/dofs/dof_tools.h b/include/deal.II/dofs/dof_tools.h index 9be785ac27..27704a3254 100644 --- a/include/deal.II/dofs/dof_tools.h +++ b/include/deal.II/dofs/dof_tools.h @@ -272,20 +272,24 @@ namespace DoFTools /** * Maximal number of degrees of freedom on a cell. * + * @deprecated Use dh.get_fe_collection().max_dofs_per_cell(). + * * @relates DoFHandler */ template unsigned int - max_dofs_per_cell (const DoFHandler &dh); + max_dofs_per_cell (const DoFHandler &dh) DEAL_II_DEPRECATED; /** * Maximal number of degrees of freedom on a cell. * + * @deprecated Use dh.get_fe_collection().max_dofs_per_cell(). + * * @relates hp::DoFHandler */ template unsigned int - max_dofs_per_cell (const hp::DoFHandler &dh); + max_dofs_per_cell (const hp::DoFHandler &dh) DEAL_II_DEPRECATED; /** @@ -294,11 +298,13 @@ namespace DoFTools * This function exists for both non-hp and hp DoFHandlers, to allow for a * uniform interface to query this property. * + * @deprecated Use dh.get_fe_collection().max_dofs_per_face(). + * * @relates DoFHandler */ template unsigned int - max_dofs_per_face (const DoFHandler &dh); + max_dofs_per_face (const DoFHandler &dh) DEAL_II_DEPRECATED; /** * Maximal number of degrees of freedom on a face. @@ -306,11 +312,13 @@ namespace DoFTools * This function exists for both non-hp and hp DoFHandlers, to allow for a * uniform interface to query this property. * + * @deprecated Use dh.get_fe_collection().max_dofs_per_face(). + * * @relates hp::DoFHandler */ template unsigned int - max_dofs_per_face (const hp::DoFHandler &dh); + max_dofs_per_face (const hp::DoFHandler &dh) DEAL_II_DEPRECATED; /** * Maximal number of degrees of freedom on a vertex. @@ -318,11 +326,13 @@ namespace DoFTools * This function exists for both non-hp and hp DoFHandlers, to allow for a * uniform interface to query this property. * + * @deprecated Use dh.get_fe_collection().max_dofs_per_vertex(). + * * @relates DoFHandler */ template unsigned int - max_dofs_per_vertex (const DoFHandler &dh); + max_dofs_per_vertex (const DoFHandler &dh) DEAL_II_DEPRECATED; /** * Maximal number of degrees of freedom on a vertex. @@ -330,11 +340,13 @@ namespace DoFTools * This function exists for both non-hp and hp DoFHandlers, to allow for a * uniform interface to query this property. * + * @deprecated Use dh.get_fe_collection().max_dofs_per_vertex(). + * * @relates hp::DoFHandler */ template unsigned int - max_dofs_per_vertex (const hp::DoFHandler &dh); + max_dofs_per_vertex (const hp::DoFHandler &dh) DEAL_II_DEPRECATED; /** * Number of vector components in the finite element object used by this @@ -343,11 +355,13 @@ namespace DoFTools * This function exists for both non-hp and hp DoFHandlers, to allow for a * uniform interface to query this property. * + * @deprecated Use dh.get_fe_collection().n_components(). + * * @relates DoFHandler */ template unsigned int - n_components (const DoFHandler &dh); + n_components (const DoFHandler &dh) DEAL_II_DEPRECATED; /** * Number of vector components in the finite element object used by this @@ -356,37 +370,43 @@ namespace DoFTools * This function exists for both non-hp and hp DoFHandlers, to allow for a * uniform interface to query this property. * + * @deprecated Use dh.get_fe_collection().n_components(). + * * @relates hp::DoFHandler */ template unsigned int - n_components (const hp::DoFHandler &dh); + n_components (const hp::DoFHandler &dh) DEAL_II_DEPRECATED; /** - * Find out whether the FiniteElement used by this DoFHandler is primitive - * or not. + * Find out whether the first FiniteElement used by this DoFHandler is + * primitive or not. * * This function exists for both non-hp and hp DoFHandlers, to allow for a * uniform interface to query this property. * + * @deprecated Use dh.get_finite_element(0).is_primitive(). + * * @relates DoFHandler */ template bool - fe_is_primitive (const DoFHandler &dh); + fe_is_primitive (const DoFHandler &dh) DEAL_II_DEPRECATED; /** - * Find out whether the FiniteElement used by this DoFHandler is primitive + * Find out whether the first FiniteElement used by this DoFHandler is primitive * or not. * * This function exists for both non-hp and hp DoFHandlers, to allow for a * uniform interface to query this property. * + * @deprecated Use dh.get_finite_element(0).is_primitive(). + * * @relates hp::DoFHandler */ template bool - fe_is_primitive (const hp::DoFHandler &dh); + fe_is_primitive (const hp::DoFHandler &dh) DEAL_II_DEPRECATED; /** * @}