From: Daniel Arndt Date: Mon, 21 Aug 2017 19:02:31 +0000 (+0200) Subject: Deprecate distribute_mg_dofs with one parameter X-Git-Tag: v9.0.0-rc1~1189^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a86868b115596e1deee3031d4ac30ba99e14e67;p=dealii.git Deprecate distribute_mg_dofs with one parameter --- diff --git a/include/deal.II/dofs/dof_handler.h b/include/deal.II/dofs/dof_handler.h index 5314a42c56..aa2aba5a54 100644 --- a/include/deal.II/dofs/dof_handler.h +++ b/include/deal.II/dofs/dof_handler.h @@ -363,8 +363,17 @@ public: * multigrid. The active DoFs need to be distributed using distribute_dofs() * before calling this function and the @p fe needs to be identical to the * finite element passed to distribute_dofs(). + * + * @deprecated Use the version without parameter instead. + */ + virtual void distribute_mg_dofs (const FiniteElement &fe) DEAL_II_DEPRECATED; + + /** + * Distribute level degrees of freedom on each level for geometric + * multigrid. The active DoFs need to be distributed using distribute_dofs() + * before calling this function. */ - virtual void distribute_mg_dofs (const FiniteElement &fe); + virtual void distribute_mg_dofs (); /** * This function returns whether this DoFHandler has DoFs distributed on diff --git a/source/dofs/dof_handler.cc b/source/dofs/dof_handler.cc index c129e37193..393bb4df44 100644 --- a/source/dofs/dof_handler.cc +++ b/source/dofs/dof_handler.cc @@ -1024,8 +1024,17 @@ void DoFHandler::distribute_dofs (const FiniteElement void DoFHandler::distribute_mg_dofs (const FiniteElement &) +{ + this->distribute_mg_dofs(); +} + + + +template +void DoFHandler::distribute_mg_dofs () { Assert(levels.size()>0, ExcMessage("Distribute active DoFs using distribute_dofs() before calling distribute_mg_dofs()."));