From 7db7444af235825c678f51ca8084186eda623e85 Mon Sep 17 00:00:00 2001 From: guido Date: Wed, 17 Oct 2001 08:14:52 +0000 Subject: [PATCH] multigrid improved git-svn-id: https://svn.dealii.org/trunk@5154 0785d39b-7218-0410-832d-ea1e28bc413d --- .../include/numerics/dof_renumbering.h | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/deal.II/deal.II/include/numerics/dof_renumbering.h b/deal.II/deal.II/include/numerics/dof_renumbering.h index 8f70cb91f6..b29d2466f0 100644 --- a/deal.II/deal.II/include/numerics/dof_renumbering.h +++ b/deal.II/deal.II/include/numerics/dof_renumbering.h @@ -270,6 +270,45 @@ class DoFRenumbering component_wise (DoFHandler &dof_handler, const std::vector &component_order = std::vector()); + /** + * Sort the degrees of freedom by + * component. The numbering within + * each component is not touched, + * so a degree of freedom with index + * $i$, belonging to some component, + * and another degree of freedom + * with index $j$ belonging to the same + * component will be assigned new + * indices $n(i)$ and $n(j)$ with + * $n(i)n(j)$ if $i>j$. + * + * You may want to give the order in + * which the components are to be ordered + * (e.g. if the second argument contains + * the numbers @p{(0, 3, 2, 1)}, then all + * indices of component @p{0} will be + * before those of component @p{3}, before + * those of component @p{2}, ...). The + * length of this list has to be the + * same as the number of components + * in the finite element, and has to + * contain all numbers counted from + * zero onwards. If + * you ommit this argument, the same + * order as given by the finite element + * is used. + * + * For finite elements with only one + * component, this function is the + * identity operation. + */ + template + static void + component_wise (MGDoFHandler& dof_handler, + unsigned int level, + const std::vector& component_order = std::vector()); + /** * Cell-wise renumbering for DG * elements. This function takes -- 2.39.5