]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
compatibility wrapper
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 25 Jun 2005 07:29:05 +0000 (07:29 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 25 Jun 2005 07:29:05 +0000 (07:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@10938 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_tools.h
deal.II/deal.II/source/multigrid/mg_dof_tools.cc

index dc9fdd925d6ecf0a87d759c4790964f987e66ca4..43484488c5f833fb508fab16b80f82116268a82d 100644 (file)
@@ -155,6 +155,17 @@ class MGTools
        const bool only_once = false,
        std::vector<unsigned int> target_component = std::vector<unsigned int>());
     
+                                    /**
+                                     * @deprecated Wrapper for the
+                                     * other function with same name,
+                                     * introduced for compatibility.
+                                     */
+    template <int dim>
+      static void count_dofs_per_component (
+       const MGDoFHandler<dim> &mg_dof,
+       std::vector<std::vector<unsigned int> > &result,
+       std::vector<unsigned int> target_component);
+    
     
                                     /**
                                      * Ajust vectors on all levels to
index ea7cbfd480b616703f5241605af7ea33f586951f..e15156e71a27d70c5d8588ace767fe3cbe3d4fb2 100644 (file)
@@ -541,6 +541,18 @@ MGTools::count_dofs_per_component (
 
 
 
+template <int dim>
+void
+MGTools::count_dofs_per_component (
+  const MGDoFHandler<dim> &dof_handler,
+  std::vector<std::vector<unsigned int> > &result,
+  std::vector<unsigned int> target_component)
+{
+  count_dofs_per_component(dof_handler, result, false, target_component);
+}
+
+
+
 template<int dim, typename number>
 void
 MGTools::reinit_vector (const MGDoFHandler<dim> &mg_dof,
@@ -727,3 +739,7 @@ template void MGTools::count_dofs_per_component<deal_II_dimension> (
   std::vector<std::vector<unsigned int> >&,
   bool,
   std::vector<unsigned int>);
+template void MGTools::count_dofs_per_component<deal_II_dimension> (
+  const MGDoFHandler<deal_II_dimension>&,
+  std::vector<std::vector<unsigned int> >&,
+  std::vector<unsigned int>);

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.