]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated versions of the DoFTools::count_dofs_per_*() 12373/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 1 Jun 2021 14:17:27 +0000 (10:17 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 1 Jun 2021 14:25:10 +0000 (10:25 -0400)
doc/news/changes/incompatibilities/20210601DanielArndt [new file with mode: 0644]
include/deal.II/dofs/dof_tools.h
source/dofs/dof_tools.cc
source/dofs/dof_tools.inst.in
tests/symengine/sd_common_tests/step-44-sd-quadrature_level.h

diff --git a/doc/news/changes/incompatibilities/20210601DanielArndt b/doc/news/changes/incompatibilities/20210601DanielArndt
new file mode 100644 (file)
index 0000000..9111ef3
--- /dev/null
@@ -0,0 +1,4 @@
+Removed: The deprecated versions of DoFTools::count_dofs_per_component()
+and DoFTools::count_dofs_per_block() have been removed.
+<br>
+(Daniel Arndt, 2021/06/01)
index f92075f96ee6287581b39356b3696d14bffd0f55..6a5d6102d21e28a5b4a5b36a34b1e16c1af544e5 100644 (file)
@@ -2076,18 +2076,6 @@ namespace DoFTools
     const bool                       vector_valued_once = false,
     const std::vector<unsigned int> &target_component   = {});
 
-  /**
-   * @deprecated A version of the previous function that returns its
-   * information through the non-`const` second argument.
-   */
-  template <int dim, int spacedim>
-  DEAL_II_DEPRECATED void
-  count_dofs_per_component(
-    const DoFHandler<dim, spacedim> &     dof_handler,
-    std::vector<types::global_dof_index> &dofs_per_component,
-    const bool                            vector_valued_once = false,
-    const std::vector<unsigned int> &     target_component   = {});
-
   /**
    * Count the degrees of freedom in each block. This function is similar to
    * count_dofs_per_component(), with the difference that the counting is done
@@ -2110,17 +2098,6 @@ namespace DoFTools
                           const std::vector<unsigned int> &target_block =
                             std::vector<unsigned int>());
 
-  /**
-   * @deprecated A version of the previous function that returns its
-   * information through the non-`const` second argument.
-   */
-  template <int dim, int spacedim>
-  DEAL_II_DEPRECATED void
-  count_dofs_per_block(const DoFHandler<dim, spacedim> &     dof,
-                       std::vector<types::global_dof_index> &dofs_per_block,
-                       const std::vector<unsigned int> &     target_block =
-                         std::vector<unsigned int>());
-
   /**
    * For each active cell of a DoFHandler, extract the active finite element
    * index and fill the vector given as second argument. This vector is assumed
index e595c456fce95ac2605f32b79c12a1c510d4c6b9..27741288438f00a84d558e932cdcb8a193be3dc6 100644 (file)
@@ -1846,21 +1846,6 @@ namespace DoFTools
 
 
 
-  // deprecated function
-  template <int dim, int spacedim>
-  void
-  count_dofs_per_component(
-    const DoFHandler<dim, spacedim> &     dof_handler,
-    std::vector<types::global_dof_index> &dofs_per_component,
-    const bool                            only_once,
-    const std::vector<unsigned int> &     target_component)
-  {
-    dofs_per_component =
-      count_dofs_per_fe_component(dof_handler, only_once, target_component);
-  }
-
-
-
   template <int dim, int spacedim>
   std::vector<types::global_dof_index>
   count_dofs_per_fe_component(
@@ -1953,18 +1938,6 @@ namespace DoFTools
 
 
 
-  // deprecated function
-  template <int dim, int spacedim>
-  void
-  count_dofs_per_block(const DoFHandler<dim, spacedim> &     dof_handler,
-                       std::vector<types::global_dof_index> &dofs_per_block,
-                       const std::vector<unsigned int> &     target_block)
-  {
-    dofs_per_block = count_dofs_per_fe_block(dof_handler, target_block);
-  }
-
-
-
   template <int dim, int spacedim>
   std::vector<types::global_dof_index>
   count_dofs_per_fe_block(const DoFHandler<dim, spacedim> &dof_handler,
index 9f907a2eb182d5c0a3d0c04611a9f48dd918e5a9..32898e84bfdef666ddfd5c037c7ead94d331b5f7 100644 (file)
@@ -54,21 +54,6 @@ for (deal_II_dimension, deal_II_space_dimension : DIMENSIONS)
           &                  dof_handler,
         const ComponentMask &components);
 
-      // deprecated versions of the count_dofs_per_*() functions
-      template void
-      count_dofs_per_component<deal_II_dimension, deal_II_space_dimension>(
-        const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
-        std::vector<types::global_dof_index> &,
-        const bool,
-        const std::vector<unsigned int> &);
-
-      template void
-      count_dofs_per_block<deal_II_dimension, deal_II_space_dimension>(
-        const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
-        std::vector<types::global_dof_index> &,
-        const std::vector<unsigned int> &);
-
-      // new versions of the count_dofs_per_*() functions
       template std::vector<types::global_dof_index>
       count_dofs_per_fe_component<deal_II_dimension, deal_II_space_dimension>(
         const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
index 1dc2f869b465952787729b8dd680d0ba8e18eb57..962ce3036781bc00144ee9c0dc0bf620dfb738ee 100644 (file)
@@ -1055,9 +1055,8 @@ namespace Step44
     dof_handler_ref.distribute_dofs(fe);
     DoFRenumbering::Cuthill_McKee(dof_handler_ref);
     DoFRenumbering::component_wise(dof_handler_ref, block_component);
-    DoFTools::count_dofs_per_block(dof_handler_ref,
-                                   dofs_per_block,
-                                   block_component);
+    dofs_per_block =
+      DoFTools::count_dofs_per_block(dof_handler_ref, block_component);
     std::cout << "Triangulation:"
               << "\n\t Number of active cells: "
               << triangulation.n_active_cells()

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.