From: hartmann Date: Mon, 9 Dec 2002 16:57:05 +0000 (+0000) Subject: Fix: Make the DoFHandler::renumber_dofs and DoFHandler::n_dofs functions accessible... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f773c3d9a8fa74e906e8c53de515a10678782d84;p=dealii-svn.git Fix: Make the DoFHandler::renumber_dofs and DoFHandler::n_dofs functions accessible from the MGDoFHandler class. git-svn-id: https://svn.dealii.org/trunk@6806 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/multigrid/mg_dof_handler.h b/deal.II/deal.II/include/multigrid/mg_dof_handler.h index 570361db70..9e98adaf68 100644 --- a/deal.II/deal.II/include/multigrid/mg_dof_handler.h +++ b/deal.II/deal.II/include/multigrid/mg_dof_handler.h @@ -228,6 +228,15 @@ class MGDoFHandler : public DoFHandler void renumber_dofs (const unsigned int level, const std::vector &new_numbers); + /** + * Redeclare this function of the + * @ref{DoFHandler} basis class + * as otherwise it is hidden from + * the function with the same + * name, see above. + */ + void renumber_dofs (const std::vector &new_numbers); + /*--------------------------------------*/ /** @@ -831,6 +840,7 @@ class MGDoFHandler : public DoFHandler /*---------------------------------------*/ + /** * Return the number of degrees * of freedom on the specified @@ -841,6 +851,15 @@ class MGDoFHandler : public DoFHandler */ unsigned int n_dofs (const unsigned int level) const; + /** + * Redeclare this function of the + * @ref{DoFHandler} basis class + * as otherwise it is hidden from + * the function with the same + * name, see above. + */ + unsigned int n_dofs () const; + /** * Exception. */ @@ -1075,8 +1094,25 @@ class MGDoFHandler : public DoFHandler }; -/* ----------------------- Inline functions of MGVertexDoFs -------------------*/ +/* ----------------------- Inline functions of MGDoFHandler -------------------*/ +template +inline +unsigned int MGDoFHandler::n_dofs() const +{ + return DoFHandler::n_dofs(); +} + + +template +inline +void MGDoFHandler::renumber_dofs (const std::vector &new_numbers) +{ + return DoFHandler::renumber_dofs (new_numbers); +} + + +/* ----------------------- Inline functions of MGVertexDoFs -------------------*/ template inline