const Point<DH::space_dimension> &direction,
const bool dof_wise_renumbering = false);
- /**
- * This function does the downstream numbering for the individual levels of
- * a multigrid hierarchy, but not for the global degrees of freedom.
- *
- * @deprecated Call downstream() function that takes a level argument for
- * each of the levels of the multigrid hierarchy.
- */
- template <int dim, int spacedim>
- void
- downstream (MGDoFHandler<dim,spacedim> &dof_handler,
- const Point<spacedim> &direction,
- const bool dof_wise_renumbering = false) DEAL_II_DEPRECATED;
-
/**
* @deprecated Use downstream() instead.
*/
DeclException0 (ExcNotDGFEM);
}
+/* ------------------------- inline functions -------------- */
+
+#ifndef DOXYGEN
+namespace DoFRenumbering
+{
+ template <class DH>
+ void
+ inline
+ downstream (DH &dof,
+ const Point<DH::space_dimension> &direction,
+ const bool dof_wise_renumbering)
+ {
+ std::vector<types::global_dof_index> renumbering(dof.n_dofs());
+ std::vector<types::global_dof_index> reverse(dof.n_dofs());
+ compute_downstream(renumbering, reverse, dof, direction,
+ dof_wise_renumbering);
+
+ dof.renumber_dofs(renumbering);
+ }
+}
+#endif
+
+
DEAL_II_NAMESPACE_CLOSE
#endif
- template <class DH>
- void
- downstream (DH &dof,
- const Point<DH::space_dimension> &direction,
- const bool dof_wise_renumbering)
- {
- std::vector<types::global_dof_index> renumbering(dof.n_dofs());
- std::vector<types::global_dof_index> reverse(dof.n_dofs());
- compute_downstream(renumbering, reverse, dof, direction,
- dof_wise_renumbering);
-
- dof.renumber_dofs(renumbering);
- }
- template <int dim, int spacedim>
- void
- downstream (MGDoFHandler<dim,spacedim> &dof_handler,
- const Point<spacedim> &direction,
- const bool dof_wise_renumbering)
- {
- for (unsigned int level=0; level<dof_handler.n_levels(); ++level)
- downstream(dof_handler, level, direction, dof_wise_renumbering);
- }
template <class DH>
const DoFHandler<deal_II_dimension>&, unsigned int,
const std::vector<DoFHandler<deal_II_dimension>::level_cell_iterator>&);
- template void
- downstream<DoFHandler<deal_II_dimension> >
- (DoFHandler<deal_II_dimension>&, const Point<DoFHandler<deal_II_dimension>::space_dimension>&,
- const bool);
-
template void
compute_downstream<DoFHandler<deal_II_dimension> >
(std::vector<types::global_dof_index>&,std::vector<types::global_dof_index>&,
const hp::DoFHandler<deal_II_dimension>&,
const std::vector<hp::DoFHandler<deal_II_dimension>::active_cell_iterator>&);
- template void
- downstream<hp::DoFHandler<deal_II_dimension> >
- (hp::DoFHandler<deal_II_dimension>&,
- const Point<hp::DoFHandler<deal_II_dimension>::space_dimension>&,
- const bool);
-
- template void
- downstream<MGDoFHandler<deal_II_dimension> >
- (MGDoFHandler<deal_II_dimension>&,
- const Point<MGDoFHandler<deal_II_dimension>::space_dimension>&,
- const bool);
-
template void
downstream<MGDoFHandler<deal_II_dimension> >
(MGDoFHandler<deal_II_dimension>&,