]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
compatibility wrapper for count_dofs_per_component
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Jun 2005 14:45:14 +0000 (14:45 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Jun 2005 14:45:14 +0000 (14:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@10882 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_tools.h
deal.II/deal.II/source/dofs/dof_tools.cc

index 1d678a28492182a84cb2098e1180443aa562e701..0145f36989ed1b52aa401b3d868d5478fdae5f09 100644 (file)
@@ -948,6 +948,20 @@ class DoFTools
                              const bool vector_valued_once = false,
                              std::vector<unsigned int>  target_component
                              =std::vector<unsigned int>());
+
+                                    /**
+                                     * @deprecated See the previous
+                                     * function with the same name
+                                     * for a description. This
+                                     * function exists for
+                                     * compatibility with older
+                                     * versions only.
+                                     */
+    template <int dim>
+    static void
+    count_dofs_per_component (const DoFHandler<dim>&     dof_handler,
+                             std::vector<unsigned int>& dofs_per_component,
+                             std::vector<unsigned int>  target_component);
     
                                     /**
                                      * This function can be used when
index 0ecf810e9417628be3165c62ae89e2929cec3a80..085031b0920de3b507a62c0ad1050cb0259723b4 100644 (file)
@@ -1814,6 +1814,17 @@ DoFTools::count_dofs_per_component (
 
 
 
+template <int dim>
+void
+DoFTools::count_dofs_per_component (
+  const DoFHandler<dim>&     dof_handler,
+  std::vector<unsigned int>& dofs_per_component,
+  std::vector<unsigned int>  target_component)
+{
+  count_dofs_per_component (dof_handler, dofs_per_component, false, target_component);
+}
+
+
 template <int dim>
 void
 DoFTools::compute_intergrid_constraints (
@@ -3138,6 +3149,12 @@ DoFTools::count_dofs_per_component<deal_II_dimension> (
   const DoFHandler<deal_II_dimension>&,
   std::vector<unsigned int>&, bool, std::vector<unsigned int>);
 
+template
+void
+DoFTools::count_dofs_per_component<deal_II_dimension> (
+  const DoFHandler<deal_II_dimension>&,
+  std::vector<unsigned int>&, std::vector<unsigned int>);
+
 template
 void
 DoFTools::compute_intergrid_constraints<deal_II_dimension> (

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.