]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
count_dofs_per_component
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Feb 2001 10:49:40 +0000 (10:49 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Feb 2001 10:49:40 +0000 (10:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@4009 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 83cf803b55d9537691c554a431351906765c4cd9..a73fba6bc3e671062c5a427d122cf7a0fc8f8f56 100644 (file)
@@ -566,6 +566,30 @@ class DoFTools
     static void
     extract_hanging_node_dofs (const DoFHandler<dim> &dof_handler,
                               std::vector<bool>     &selected_dofs);
+
+                                    /**
+                                     * Count how many degrees of
+                                     * freedom out of the total
+                                     * number belong to each
+                                     * components. If the number of
+                                     * components the finite element
+                                     * has (i.e. you only have one
+                                     * scalar variable), then the
+                                     * number in this component
+                                     * obviously equals the total
+                                     * number of degrees of
+                                     * freedom. Otherwise, the sum of
+                                     * the DoFs in all the components
+                                     * needs to equal the total
+                                     * number.
+                                     *
+                                     * The result is returned in the
+                                     * last argument.
+                                     */
+    template <int dim>
+    static void
+    count_dofs_per_component (const DoFHandler<dim>     &dof_handler,
+                             std::vector<unsigned int> &dofs_per_component);
     
                                     /**
                                      * This function can be used when

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.