From: Guido Kanschat Date: Wed, 17 Oct 2001 08:14:52 +0000 (+0000) Subject: multigrid improved X-Git-Tag: v8.0.0~18669 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4623463acddcc5c52fd99565558dd55e6865ef9;p=dealii.git multigrid improved git-svn-id: https://svn.dealii.org/trunk@5154 0785d39b-7218-0410-832d-ea1e28bc413d --- 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