]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecate all DoFTools compatibility functions for DH and hp::DH
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 21 Aug 2017 16:58:50 +0000 (18:58 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 22 Aug 2017 12:04:49 +0000 (14:04 +0200)
include/deal.II/dofs/dof_tools.h

index 9be785ac27487e58c1f42a0e3d0317b0a26224a1..27704a32546cab54f99d05ab9640dcbe0f8e9bed 100644 (file)
@@ -272,20 +272,24 @@ namespace DoFTools
   /**
    * Maximal number of degrees of freedom on a cell.
    *
+   * @deprecated Use <code>dh.get_fe_collection().max_dofs_per_cell()</code>.
+   *
    * @relates DoFHandler
    */
   template <int dim, int spacedim>
   unsigned int
-  max_dofs_per_cell (const DoFHandler<dim,spacedim> &dh);
+  max_dofs_per_cell (const DoFHandler<dim,spacedim> &dh) DEAL_II_DEPRECATED;
 
   /**
    * Maximal number of degrees of freedom on a cell.
    *
+   * @deprecated Use <code>dh.get_fe_collection().max_dofs_per_cell()</code>.
+   *
    * @relates hp::DoFHandler
    */
   template <int dim, int spacedim>
   unsigned int
-  max_dofs_per_cell (const hp::DoFHandler<dim,spacedim> &dh);
+  max_dofs_per_cell (const hp::DoFHandler<dim,spacedim> &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 <code>dh.get_fe_collection().max_dofs_per_face()</code>.
+   *
    * @relates DoFHandler
    */
   template <int dim, int spacedim>
   unsigned int
-  max_dofs_per_face (const DoFHandler<dim,spacedim> &dh);
+  max_dofs_per_face (const DoFHandler<dim,spacedim> &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 <code>dh.get_fe_collection().max_dofs_per_face()</code>.
+   *
    * @relates hp::DoFHandler
    */
   template <int dim, int spacedim>
   unsigned int
-  max_dofs_per_face (const hp::DoFHandler<dim,spacedim> &dh);
+  max_dofs_per_face (const hp::DoFHandler<dim,spacedim> &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 <code>dh.get_fe_collection().max_dofs_per_vertex()</code>.
+   *
    * @relates DoFHandler
    */
   template <int dim, int spacedim>
   unsigned int
-  max_dofs_per_vertex (const DoFHandler<dim,spacedim> &dh);
+  max_dofs_per_vertex (const DoFHandler<dim,spacedim> &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 <code>dh.get_fe_collection().max_dofs_per_vertex()</code>.
+   *
    * @relates hp::DoFHandler
    */
   template <int dim, int spacedim>
   unsigned int
-  max_dofs_per_vertex (const hp::DoFHandler<dim,spacedim> &dh);
+  max_dofs_per_vertex (const hp::DoFHandler<dim,spacedim> &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 <code>dh.get_fe_collection().n_components()</code>.
+   *
    * @relates DoFHandler
    */
   template <int dim, int spacedim>
   unsigned int
-  n_components (const DoFHandler<dim,spacedim> &dh);
+  n_components (const DoFHandler<dim,spacedim> &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 <code>dh.get_fe_collection().n_components()</code>.
+   *
    * @relates hp::DoFHandler
    */
   template <int dim, int spacedim>
   unsigned int
-  n_components (const hp::DoFHandler<dim,spacedim> &dh);
+  n_components (const hp::DoFHandler<dim,spacedim> &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 <code>dh.get_finite_element(0).is_primitive()</code>.
+   *
    * @relates DoFHandler
    */
   template <int dim, int spacedim>
   bool
-  fe_is_primitive (const DoFHandler<dim,spacedim> &dh);
+  fe_is_primitive (const DoFHandler<dim,spacedim> &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 <code>dh.get_finite_element(0).is_primitive()</code>.
+   *
    * @relates hp::DoFHandler
    */
   template <int dim, int spacedim>
   bool
-  fe_is_primitive (const hp::DoFHandler<dim,spacedim> &dh);
+  fe_is_primitive (const hp::DoFHandler<dim,spacedim> &dh) DEAL_II_DEPRECATED;
 
   /**
    * @}

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.